HeadersFragment

open class HeadersFragment : BaseRowFragment
androidx.leanback.app.HeadersFragment

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 BrowseFragment#onCreateHeadersFragment().

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
onViewCreated(@NonNull view: View, @Nullable savedInstanceState: Bundle?)

open Unit

open Unit

open Unit

Public constructors

<init>

HeadersFragment()

Public methods

isScrolling

open fun isScrolling(): Boolean

setOnHeaderViewSelectedListener

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

onViewCreated

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

onTransitionStart

open fun onTransitionStart(): Unit

onTransitionEnd

open fun onTransitionEnd(): Unit

setOnHeaderClickedListener

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