Java android.widget TimePicker fields, constructors, methods, implement or subclass

Example usage for Java android.widget TimePicker fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for android.widget TimePicker.

The text is from its open source code.

Constructor

Method

voidclearFocus()
TfindViewById(@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.
ContextgetContext()
Returns the context the view is running in, through which it can access the current theme, resources, etc.
IntegergetCurrentHour()
IntegergetCurrentMinute()
intgetId()
Returns this view's identifier.
IBindergetWindowToken()
Retrieve a unique token identifying the window this view is attached to.
booleanisShown()
Returns the visibility of this view and all of its ancestors
voidsetCurrentHour(@NonNull Integer currentHour)
Sets the currently selected hour using 24-hour time.
voidsetCurrentMinute(@NonNull Integer currentMinute)
Sets the currently selected minute.
voidsetDescendantFocusability(int focusability)
Set the descendant focusability of this view group.
voidsetIs24HourView(@NonNull Boolean is24HourView)
Sets whether this widget displays time in 24-hour mode or 12-hour mode with an AM/PM picker.
voidsetOnTimeChangedListener(OnTimeChangedListener onTimeChangedListener)
Set the callback that indicates the time has been adjusted by the user.
voidsetVisibility(@Visibility int visibility)
Set the visibility state of this view.