Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where can I find the time picker view of the native alarm clock app of android?

I am looking for the circle shaped view, which allows you to pick the hour and after that the minutes for the alarm. Both, the possible numbers are distributed in a circle.

I couldnt find that view in the native API, is there a chance to use this view type ? Or do I have to create one on my own ?

Thanks in advance.

EDIT: I am looking for this:

http://s1.directupload.net/images/140123/iwbb4d3y.png

like image 640
alm Avatar asked Jan 23 '14 17:01

alm


People also ask

What is the time picker view?

Android TimePicker is a user interface control for selecting the time in either 24-hour format or AM/PM mode. It is used to ensure that users pick the valid time for the day in our application. The time picker interface exists basically in two modes one is under XML layout and another is a dialog.


2 Answers

Here are a few libraries:

  1. https://github.com/flavienlaurent/datetimepicker
  2. https://github.com/CiTuX/datetimepicker
  3. https://github.com/Mirkoddd/GoogleDateTimePickers

Or you can look at the sourcecode Google wrote: https://android.googlesource.com/platform/frameworks/opt/datetimepicker/+/master/src/com/android/datetimepicker/time/TimePickerDialog.java

like image 98
Kevin van Mierlo Avatar answered Sep 21 '22 08:09

Kevin van Mierlo


You are looking for android.widget.TimePicker with the attribute

android:timePickerMode="clock"

EDIT: It comes with the API 23

like image 40
Mino Avatar answered Sep 20 '22 08:09

Mino