Skip to content

I couldn't find a time picker dialog for android API 21 that didn't use the clock mode, so here it is, just change it in the xml

Notifications You must be signed in to change notification settings

josurene/CustomTimePickerDialog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Android CustomTimePickerDialog

I couldn't find a time picker dialog for android API 21 that didn't use the clock mode, so here it is, just change it in the xml

Example

CustomTimePickerDialog dialog = new CustomTimePickerDialog(getActivity(), new CustomTimePickerDialog.onCustomTimeSetListener() {
                    @Override
                    public void onTimeSet(TimePicker picker, int selectedHour, int selectedMinute) {
                       
                        Toast.makeText(getActivity(), "Hour : " +selectedHour + ":"+selectedMinute , Toast.LENGTH_SHORT).show();
                    }
                }, hour, minute, true);
dialog.show();

About

I couldn't find a time picker dialog for android API 21 that didn't use the clock mode, so here it is, just change it in the xml

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages