Date and time picker in same dialogbox



How can I show Date picker and time picker in the same dialog box ? If I' using



<TimePicker
android:id="@+id/timePicker1"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />

<DatePicker
android:id="@+id/datePicker1"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />


what should be done on MainAcitiviy.java I'm new to android. I searched but didnt get anything,,


No comments:

Post a Comment