DetailsSupportFragment

public class DetailsSupportFragment
extends BaseSupportFragment

java.lang.Object
   ↳ androidx.fragment.app.Fragment
     ↳ androidx.leanback.app.BrandedSupportFragment
       ↳ androidx.leanback.app.BaseSupportFragment
         ↳ androidx.leanback.app.DetailsSupportFragment


A fragment for creating Leanback details screens.

A DetailsSupportFragment renders the elements of its ObjectAdapter as a set of rows in a vertical list.The Adapter's PresenterSelector must maintain subclasses of RowPresenter.

When FullWidthDetailsOverviewRowPresenter is found in adapter, DetailsSupportFragment will setup default behavior of the DetailsOverviewRow:

The recommended activity themes to use with a DetailsSupportFragment are

DetailsSupportFragment can use DetailsSupportFragmentBackgroundController to add a parallax drawable background and embedded video playing fragment.

Summary

Public constructors

DetailsSupportFragment()

Public methods

ObjectAdapter getAdapter()

Returns the list of rows.

BaseOnItemViewClickedListener getOnItemViewClickedListener()

Returns the item clicked listener.

DetailsParallax getParallax()

Returns the DetailsParallax instance used by DetailsSupportFragmentBackgroundController to configure parallax effect of background and control embedded video playback.

RowsSupportFragment getRowsSupportFragment()

Gets embedded RowsSupportFragment showing multiple rows for DetailsSupportFragment.

void onCreate(Bundle savedInstanceState)

Called to do initial creation of a fragment.