Android 12 Developer Preview is here! Try it out, and give us your feedback!

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