CreateEventActivity.TimePickerFragment¶
-
public static class
TimePickerFragment
extends DialogFragment implements TimePickerDialog.OnTimeSetListener¶ TimePicker static class that handles operations of the time selection fragment
Methods¶
getTimePicker¶
-
public TimePicker
getTimePicker
()¶ Return the TimePicker
Returns: the TimePicker
isSet¶
-
public boolean
isSet
()¶ Check whether the user has set a time yet
Returns: true if the user has set the time, false otherwise
onCreateDialog¶
-
public Dialog
onCreateDialog
(Bundle savedInstanceState)¶ Called when the fragment is created Sets the initial state of the clock to the current time and returns the resulting TimePickerDialog to display
Parameters: - savedInstanceState – Last saved state of fragment
Returns: TimePickerDialog to display
onTimeSet¶
-
public void
onTimeSet
(TimePicker view, int inHour, int inMin)¶ When user sets the time, show their choice in the eventTime textView
Parameters: - view – The time picker shown via the fragment
- inHour – Hour the user set
- inMin – Minute the user set