VerticalGridFragment
class VerticalGridFragment : BaseFragment
| kotlin.Any | ||||
| ↳ | android.app.Fragment | |||
| ↳ | androidx.leanback.app.BrandedFragment | |||
| ↳ | androidx.leanback.app.BaseFragment | |||
| ↳ | androidx.leanback.app.VerticalGridFragment |
A fragment for creating leanback vertical grids.
Renders a vertical grid of objects given a VerticalGridPresenter and an ObjectAdapter.
Summary
Public constructors |
|---|
Public functions |
|
|---|---|
ObjectAdapter? |
Returns the object adapter. |
VerticalGridPresenter? |
Returns the grid presenter. |
OnItemViewClickedListener? |
Returns the item clicked listener. |
View? |
This function is deprecated. |
Unit |
This function is deprecated. |
Unit |
This function is deprecated. |
Unit |
Sets the object adapter for the fragment. |
Unit |
Sets the grid presenter. |
Unit |
Sets an item clicked listener. |
Unit |
Sets an item selection listener. |
Unit |
Sets the selected item position. |
Protected functions |
|
|---|---|
Any |
Create entrance transition. |
Unit |
Run entrance transition. |
Inherited Constants |
||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Inherited functions |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Public constructors
Public functions
funonCreateView(
inflater: LayoutInflater!,
container: ViewGroup?,
savedInstanceState: Bundle!
): View?
funsetOnItemViewClickedListener(listener: OnItemViewClickedListener?): Unit
Sets an item clicked listener.
funsetOnItemViewSelectedListener(listener: OnItemViewSelectedListener?): Unit
Sets an item selection listener.
Protected functions
createEntranceTransition
protected funcreateEntranceTransition(): Any
Create entrance transition. Subclass can override to load transition from resource or construct manually. Typically app does not need to override the default transition that browse and details provides.
runEntranceTransition
protected funrunEntranceTransition(entranceTransition: Any?): Unit
Run entrance transition. Subclass may use TransitionManager to perform go(Scene) or beginDelayedTransition(). App should not override the default implementation of browse and details fragment.