Google 致力于为黑人社区推动种族平等。查看具体举措

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