VerticalGridSupportFragment

open class VerticalGridSupportFragment : BaseSupportFragment
kotlin.Any
   ↳ androidx.fragment.app.Fragment
   ↳ androidx.leanback.app.BrandedSupportFragment
   ↳ androidx.leanback.app.BaseSupportFragment
   ↳ androidx.leanback.app.VerticalGridSupportFragment

A fragment for creating leanback vertical grids.

Renders a vertical grid of objects given a VerticalGridPresenter and an ObjectAdapter.

Summary

Public constructors

A fragment for creating leanback vertical grids.

Public methods

open ObjectAdapter!

Returns the object adapter.

open VerticalGridPresenter!

Returns the grid presenter.

open OnItemViewClickedListener!

Returns the item clicked listener.

open View?
onCreateView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?)

open Unit

open Unit

open Unit

Sets the object adapter for the fragment.

open Unit

Sets the grid presenter.

open Unit

Sets an item clicked listener.

open Unit

Sets an item selection listener.

open Unit

Sets the selected item position.

Protected methods

open Any!

open Unit
runEntranceTransition(entranceTransition: Any!)

Inherited functions

Public constructors

<init>

VerticalGridSupportFragment()

A fragment for creating leanback vertical grids.

Renders a vertical grid of objects given a VerticalGridPresenter and an ObjectAdapter.

Public methods

getAdapter

open fun getAdapter(): ObjectAdapter!

Returns the object adapter.

getGridPresenter

open fun getGridPresenter(): VerticalGridPresenter!

Returns the grid presenter.

getOnItemViewClickedListener

open fun getOnItemViewClickedListener(): OnItemViewClickedListener!

Returns the item clicked listener.

onCreateView

open fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?): View?

onDestroyView

open fun onDestroyView(): Unit

onStart

open fun onStart(): Unit

setAdapter

open fun setAdapter(adapter: ObjectAdapter!): Unit

Sets the object adapter for the fragment.

setGridPresenter

open fun setGridPresenter(gridPresenter: VerticalGridPresenter!): Unit

Sets the grid presenter.

setOnItemViewClickedListener

open fun setOnItemViewClickedListener(listener: OnItemViewClickedListener!): Unit

Sets an item clicked listener.

setOnItemViewSelectedListener

open fun setOnItemViewSelectedListener(listener: OnItemViewSelectedListener!): Unit

Sets an item selection listener.

setSelectedPosition

open fun setSelectedPosition(position: Int): Unit

Sets the selected item position.

Protected methods

createEntranceTransition

protected open fun createEntranceTransition(): Any!

runEntranceTransition

protected open fun runEntranceTransition(entranceTransition: Any!): Unit