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






Youtube For Videos Join Our Youtube Channel: Join Now

Feedback


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA