added in version 24.1.0
belongs to Maven artifact com.android.support:leanback-v17:28.0.0-alpha1
belongs to Maven artifact com.android.support:leanback-v17:28.0.0-alpha1
Summary:
Nested Classes
| Inherited Constants
| Inherited Fields
| Ctors
| Methods
| Protected Methods
| Inherited Methods
| [Expand All]
Picker
public
class
Picker
extends FrameLayout
java.lang.Object | ||||
↳ | android.view.View | |||
↳ | android.view.ViewGroup | |||
↳ | android.widget.FrameLayout | |||
↳ | android.support.v17.leanback.widget.picker.Picker |
![]()
|
Picker is a widget showing multiple customized PickerColumn
s. The PickerColumns are
initialized in setColumns(List)
. Call setColumnAt(int, PickerColumn)
if the
column value range or labels change. Call setColumnValue(int, int, boolean)
to update
the current value of PickerColumn.
Picker has two states and will change height:
isActivated()
is true: Picker shows typically three items vertically (see
getActivatedVisibleItemCount()
}. Columns other than getSelectedColumn()
still
shows one item if the Picker is focused. On a touch screen device, the Picker will not get focus
so it always show three items on all columns. On a non-touch device (a TV), the Picker will show
three items only on currently activated column. If the Picker has focus, it will intercept DPAD
directions and select activated column.
isActivated()
is false: Picker shows one item vertically (see
getVisibleItemCount()
) on all columns. The size of Picker shrinks.
Summary
Nested classes | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
interface |
Picker.PickerValueListener
|
Inherited fields | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
![]()
android.view.View
|