Professional Documents
Culture Documents
Mad 16
Mad 16
16
Program:
<?xml version="1.0" encoding="utf-8"?>
<AbsoluteLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/main"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity">
<DatePicker
android:layout_width="match_parent"
android:layout_height="397dp"
android:layout_y="0dp" />
<TimePicker
android:layout_width="340dp"
android:layout_height="339dp"
android:layout_x="5dp"
android:layout_y="398dp" />
</AbsoluteLayout>
Output:
Viva Questions:
1)List all methods of TimePicker class.
2)List five methods of datePicker class.