Javatpoint Logo
Javatpoint Logo

Android TimePicker Example

android time picker

Android TimePicker widget is used to select date. It allows you to select time by hour and minute. You cannot select time by seconds.

The android.widget.TimePicker is the subclass of FrameLayout class.


Android TimePicker Example

Let's see a simple example of android time picker.

activity_main.xml

File: activity_main.xml



Activity class

File: MainActivity.java

Output:

android timepicker example 1 android timepicker example 2





Please Share

facebook twitter google plus pinterest

Learn Latest Tutorials