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,180
  • 25
  • 143
  • 222
Vijay Bagul
  • 239
  • 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
  • 904
  • 9
  • 16
-5

Did you try to change android:orientation ?

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

ChapMic
  • 25,816
  • 1
  • 20
  • 20