Example usage for Java android.widget TimePicker fields, constructors, methods, implement or subclass
The text is from its open source code.
void | clearFocus() |
T | findViewById(@IdRes int id) Finds the first descendant view with the given ID, the view itself if the ID matches #getId() , or null if the ID is invalid (< 0) or there is no matching view in the hierarchy. |
Context | getContext() Returns the context the view is running in, through which it can access the current theme, resources, etc. |
Integer | getCurrentHour() |
Integer | getCurrentMinute() |
int | getId() Returns this view's identifier. |
IBinder | getWindowToken() Retrieve a unique token identifying the window this view is attached to. |
boolean | isShown() Returns the visibility of this view and all of its ancestors |
void | setCurrentHour(@NonNull Integer currentHour) Sets the currently selected hour using 24-hour time. |
void | setCurrentMinute(@NonNull Integer currentMinute) Sets the currently selected minute. |
void | setDescendantFocusability(int focusability) Set the descendant focusability of this view group. |
void | setIs24HourView(@NonNull Boolean is24HourView) Sets whether this widget displays time in 24-hour mode or 12-hour mode with an AM/PM picker. |
void | setOnTimeChangedListener(OnTimeChangedListener onTimeChangedListener) Set the callback that indicates the time has been adjusted by the user. |
void | setVisibility(@Visibility int visibility) Set the visibility state of this view. |