Google is committed to advancing racial equity for Black communities. See how.

VerticalGridFragment

open 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

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>

VerticalGridFragment()

Deprecated: use 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