Android Dev Summit, October 23-24: two days of technical content, directly from the Android team. Sign-up for livestream updates.

HeadersSupportFragment

open class HeadersSupportFragment : BaseRowSupportFragment
androidx.leanback.app.HeadersSupportFragment

An fragment containing a list of row headers. Implementation must support three types of rows:

Use setPresenterSelector(PresenterSelector) in subclass constructor to customize Presenters. App may override BrowseSupportFragment#onCreateHeadersSupportFragment().

Summary

Nested classes

abstract

Interface definition for a callback to be invoked when a header item is clicked.

abstract

Interface definition for a callback to be invoked when a header item is selected.

Public constructors

Public methods

open Boolean

open Unit

open Unit

open Unit
onViewCreated(@NonNull view: View, @Nullable savedInstanceState: Bundle?)

open Unit

open Unit

Public constructors

<init>

HeadersSupportFragment()

Public methods

isScrolling

open fun isScrolling(): Boolean

onTransitionEnd

open fun onTransitionEnd(): Unit

onTransitionStart

open fun onTransitionStart(): Unit

onViewCreated

open fun onViewCreated(@NonNull view: View, @Nullable savedInstanceState: Bundle?): Unit

setOnHeaderClickedListener

open fun setOnHeaderClickedListener(listener: HeadersSupportFragment.OnHeaderClickedListener!): Unit

setOnHeaderViewSelectedListener

open fun setOnHeaderViewSelectedListener(listener: HeadersSupportFragment.OnHeaderViewSelectedListener!): Unit