Support classes providing high level Leanback user interface building blocks.
Leanback fragments are available both as support fragments (subclassed from
androidx.fragment.app.Fragment) and as platform
fragments (subclassed from
android.app.Fragment). A few of the most
commonly used leanback fragments are described here.
BrowseSupportFragment by default operates in the "row"
mode. It includes an optional “fastlane”
navigation side panel and a list of rows, with one-to-one correspondance between each header
in the fastlane and a row. The application supplies the
ObjectAdapter containing the list of
rows and a
PresenterSelector of row presenters.
DetailsSupportFragment will typically consist of a
large overview of an item at the top,
some actions that a user can perform, and possibly rows of additional or related items.
The content for this fragment is specified in the same way as for the BrowseSupportFragment, with
the convention that the first element in the ObjectAdapter corresponds to the overview row.
FullWidthDetailsOverviewRowPresenter provide a
default template for this row.
PlaybackSupportFragment or its subclass
PlaybackBannerControlGlue with a Leanback
look and feel. It is recommended to use an instance of
This helper implements a standard behavior for user interaction with
the most commonly used controls as well as video scrubbing.
SearchSupportFragment allows the developer to accept a
query from a user and display the results
using the familiar list rows.
GuidedStepSupportFragment is used to guide the user
through a decision or series of decisions.