2

I'm using a NumberPicker. But by default it is in vertical mode. Can I set to horizontal mode?

This is my NumberPicker:

<NumberPicker
        android:id="@+id/numberpickercontrol"
        style="@style/AndroDev"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content" />
Thomas Clayson
  • 29,657
  • 26
  • 147
  • 224
Vijay Bagul
  • 237
  • 7
  • 18

2 Answers2

3

After not finding a solution i decided to make my own implementation. Its the version with selector wheel, not with buttons and styled for xhdpi . This are the files: https://www.dropbox.com/s/x1iiecalum0ahwa/numberpickerhorizontal.rar?dl=0

I hope it helps someone.

Musma
  • 924
  • 9
  • 16
-5

Did you try to change android:orientation ?

Just change the value for what you want (horizontal or vertical).

ChapMic
  • 26,954
  • 1
  • 21
  • 20