timoschloesser timoschloesser - 1 year ago 139
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.setDisplayedValues( new String[] { "Belgium", "France", "United Kingdom" } );
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download