VerticalGridSupportFragment

open class VerticalGridSupportFragment : BaseSupportFragment
kotlin.Any
   ↳ 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 methods
open Unit

open OnItemViewClickedListener!

Returns the item clicked listener.

open ObjectAdapter!

Returns the object adapter.

open Unit

Sets an item selection listener.

open Unit

Sets an item clicked listener.

open VerticalGridPresenter!

Returns the grid presenter.

open Unit

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

open Unit

Sets the grid presenter.

open Unit

Sets the selected item position.

open Unit

Sets the object adapter for the fragment.

Protected methods
open Any!

open Unit
runEntranceTransition(entranceTransition: Any!)

Inherited functions

Public methods

onDestroyView

open fun onDestroyView(): Unit

getOnItemViewClickedListener

open fun getOnItemViewClickedListener(): OnItemViewClickedListener!

Returns the item clicked listener.

getAdapter

open fun getAdapter(): ObjectAdapter!

Returns the object adapter.

setOnItemViewSelectedListener

open fun setOnItemViewSelectedListener(listener: OnItemViewSelectedListener!): Unit

Sets an item selection listener.

setOnItemViewClickedListener

open fun setOnItemViewClickedListener(listener: OnItemViewClickedListener!): Unit

Sets an item clicked listener.

getGridPresenter

open fun getGridPresenter(): VerticalGridPresenter!

Returns the grid presenter.

onStart

open fun onStart(): Unit

onCreateView

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

setGridPresenter

open fun setGridPresenter(gridPresenter: VerticalGridPresenter!): Unit

Sets the grid presenter.

setSelectedPosition

open fun setSelectedPosition(position: Int): Unit

Sets the selected item position.

setAdapter

open fun setAdapter(adapter: ObjectAdapter!): Unit

Sets the object adapter for the fragment.

Protected methods

createEntranceTransition

protected open fun createEntranceTransition(): Any!

runEntranceTransition

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