Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

Practical No.

16

AIM: Develop a program to implement Custom Toast Alert.

PO’s : PO 1. Basic and Discipline specific knowledge


PO 4. Engineering tools, Experimentation and testing
PO 7.Life long learning

CO:CO3) Develop rich user Interfaces by using layouts and control.


CO4)Use User Interface components for android application development.

Software Requirement: AndroidStudio , JDK ,SDK.

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:

Conclusion: Hence we have developed a program to implement Date and Time


picker.

Viva Questions:
1)List all methods of TimePicker class.
2)List five methods of datePicker class.

You might also like