I created NumberPicker but it comes up empty and I cant click anything else than textfield where is this "0" and when I do that keypad pops up. Here is picture to clarify what I mean.
Picture:
Here is the code that I use to create dialog:
Dialog dialog = new Dialog(SettingsActivity.this);
dialog.setContentView(R.layout.draws_dialog);
dialog.show();
SettingsActivity
is the activity where I create and show this dialog.
and here is the xml of my dialog:
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<NumberPicker
android:id="@+id/numberPicker1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true" />
</RelativeLayout>
so any Idea what am I doing wrong here?