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

How to check data type in C++? -

javascript - Is getTimezoneOffset() stable during daylight saving transition? -

formula - R: how to pass in a reference to the variable in glm or lm? -