Android widget for custom strings

I want to make a basic collector in Android that looks like a built-in set of time and time, but uses a custom array of strings instead of dates and times:

enter image description here

http://developer.android.com/guide/topics/ui/controls/pickers.html

This is probably one of the most basic questions, and I see a lot of custom assemblers and wheels floating around, but I would especially like it to be the same as the built-in assemblers. What is the best way to do this?

Edit: so I use the widget TimePickerto display the time selection, but what can I use to select from a list of arbitrary rows?

+5
source share
1 answer

android.widget.NumberPicker

<NumberPicker
    android:id="@+id/numberPicker1"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content" />
+7

All Articles