I have seen many examples with a pair of up and down arrows on NumberPicker, DatePicker and TimePicker of Android applications. But when I use it, application show no arrows.
Are there any tricks to make the arrows shown?
The SDK is API version 17 and revision 2.
The code is pretty simple.
<DatePicker
android:id="@+id/datePicker123"
android:layout_width="280dp"
android:layout_height="wrap_content"
android:calendarViewShown="false" />
<TimePicker
android:id="@+id/timePicker123"
android:layout_width="280dp"
android:layout_height="wrap_content" />
<NumberPicker
android:id="@+id/numberPicker123"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
Activity onCreate
String[] options = new String[] { "A", "B", "C" }
NumberPicker numberPicker123 = (NumberPicker) findViewById(R.id.numberPicker123);
numberPicker123.setMinValue(0);
numberPicker123.setMaxValue(options.length - 1);
numberPicker123.setDisplayedValues(options);