Skip to content

SimpleTimeDialog

Eltos edited this page Oct 29, 2021 · 1 revision

Time dialog

extends CustomViewDialog

API reference Examples

A dialog providing a time picker

See also SimpleDateDialog

Usage

For general usage see SimpleDialog.

Additional methods are provided to set the initial time (hour and minute) etc.

Please refer to the API reference for a comprehensive documentation of these methods.

Receiving results

For general usage see SimpleDialog.

The extras Bundle returned will contain the following additional keys:

int hour = extras.getInt(SimpleTimeDialog.HOUR);
int minute = extras.getInt(SimpleTimeDialog.MINUTE);

Examples

 SimpleTimeDialog.build()
                 .hour(12)
                 .minute(30)
                 .show(this);