0

I created a dialog with a NumberPicker, however I can't center plus and minus signs. Here is my code and the image, any help is appretiated!

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="wrap_content" >

<NumberPicker
    android:id="@+id/numberPicker1"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:layout_alignParentTop="true"
    android:layout_centerHorizontal="true"
    android:layout_marginBottom="20dp"/>

<Button
    android:id="@+id/cancel"
    android:layout_width="150dp"
    android:layout_below="@+id/numberPicker1"
    android:layout_height="wrap_content"
    android:layout_alignParentLeft="true"
    android:text="Cancel" />

<Button
    android:id="@+id/set"
    android:layout_width="150dp"
    android:layout_height="wrap_content"
    android:layout_below="@+id/numberPicker1"
    android:layout_alignParentRight="true"
    android:text="Set" />

/RelativeLayout>

enter image description here

yinjia
  • 804
  • 2
  • 10
  • 20
  • You seem to have a theme problem with this dialog. – CommonsWare Sep 01 '16 at 22:25
  • will be much easyer to create your own NumberPicker . a LinearLayot , Button , EditText , Button , that's it , i tried to fix that before and i spend more time that create my own and you can customize it if you want – Adliano Alves Sep 02 '16 at 03:53

0 Answers0