timoschloesser timoschloesser - 1 year ago 122
Android Question

Using NumberPicker Widget with Strings

Is there a way to use the Android NumberPicker widget for choosing strings instead of integers?

nan nan
Answer Source
NumberPicker picker = new NumberPicker(this);
picker.setMinValue(0);
picker.setMaxValue(2);
picker.setDisplayedValues( new String[] { "Belgium", "France", "United Kingdom" } );
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download