android - How to set custom date array in date picker dialog? -


i want set custom date array in date picker dialog. date array not in sequence date. how can set custom array in date picker. please help.

here example

forget datepickerdialog, build custom dialog numberpicker widget , add code

numberpicker picker = new numberpicker(this); picker.setminvalue(0); picker.setmaxvalue(2); picker.setdisplayedvalues( new string[] { "belgium", "france", "united kingdom" } ); 

just replace new string[] { "belgium", "france", "united kingdom" } arraylist.

here link simple number picker.


Comments

Popular posts from this blog

java - Run spring boot application error: Cannot instantiate interface org.springframework.context.ApplicationListener -

reactjs - React router and this.props.children - how to pass state to this.props.children -

Excel VBA "Microsoft Windows Common Controls 6.0 (SP6)" Location Changes -