Android 12 Developer Preview is here! Try it out, and give us your feedback!

androidx.leanback.widget

Interfaces

OnKeyInterceptListener

Listener for intercepting key dispatch events.

OnLayoutCompletedListener

Interface for receiving notification when BaseGridView has completed a full layout calculation.

OnMotionInterceptListener

Listener for intercepting generic motion dispatch events.

OnTouchInterceptListener

Listener for intercepting touch dispatch events.

OnUnhandledKeyListener

SmoothScrollByBehavior

Defines behavior of duration and interpolator for smoothScrollBy().

BaseOnItemViewClickedListener

Interface for receiving notification when an item view holder is clicked.

BaseOnItemViewSelectedListener

Interface for receiving notification when a row or item becomes selected.

OnChildFocusListener

Interface for managing child focus in a BrowseFrameLayout.

OnFocusSearchListener

Interface for selecting a focused view in a BrowseFrameLayout when the system focus finder couldn't find a view to focus.

FacetProvider

This is the query interface to supply optional features(aka facets) on an object without the need of letting the object to subclass or implement java interfaces.

FacetProviderAdapter

Optional interface that implemented by RecyclerView.Adapter to query FacetProvider for a given item view type within Adapter.

FocusHighlight

Interface for highlighting the item that has focus.

FragmentAnimationProvider

FragmentAnimationProvider supplies animations for use during a fragment's onCreateAnimator callback.

GuidedActionAutofillSupport

Interface for a custom EditText subclass to support autofill in androidx.leanback.app.GuidedStepSupportFragment.

ImeKeyMonitor

Interface for an EditText subclass that can delegate calls to onKeyPreIme up to a registered listener.

MultiActionsProvider

An interface implemented by the user if they wish to provide actions for a media item row to be displayed by an AbstractMediaItemPresenter.

OnActionClickedListener

Interface for receiving notification when an Action is clicked.

OnChildLaidOutListener

Interface for receiving notification when a child of this ViewGroup has been laid out.

OnChildSelectedListener

Interface for receiving notification when a child of this ViewGroup has been selected.

OnItemViewClickedListener

Interface for receiving notification when a item view holder is clicked.

OnItemViewSelectedListener

Interface for receiving notification when a row or item becomes selected.

PlaybackSeekUi

Interface to be implemented by UI component to support seeking.

SearchBarListener

Interface for receiving notification of search query changes.

SearchBarPermissionListener

Interface that handles runtime permissions requests.

OnKeyboardDismissListener

Interface for receiving notification when the keyboard is dismissed.

SpeechRecognitionCallback

Interface for receiving notification that speech recognition should be initiated.

Provider

Interface to be implemented by a customized widget class to implement TitleViewAdapter.

ViewHolderTask

Interface for schedule task on a ViewHolder.

Classes

AbstractDetailsDescriptionPresenter

An abstract Presenter for rendering a detailed description of an item.

AbstractMediaItemPresenter

Abstract Presenter class for rendering media items in a playlist format.

AbstractMediaListHeaderPresenter

Abstract presenter class for rendering the header for a list of media items in a playlist.

Action

An action contains one or two lines of text, an optional image and an optional id.

ArrayObjectAdapter

An ObjectAdapter implemented with an ArrayList.

BaseCardView

A card style layout that responds to certain state changes.

BaseGridView

An abstract base class for vertically and horizontally scrolling lists.

BrowseFrameLayout

A ViewGroup for managing focus behavior between overlapping views.

ClassPresenterSelector

A ClassPresenterSelector selects a Presenter based on the item's Java class.

ControlButtonPresenterSelector

Displays primary and secondary controls for a PlaybackControlsRow.

CursorObjectAdapter

An ObjectAdapter implemented with a Cursor.

DetailsOverviewLogoPresenter

Presenter that responsible to create a ImageView and bind to DetailsOverviewRow.

DetailsOverviewRow

An overview Row for a details fragment.

DetailsOverviewRowPresenter

Renders a DetailsOverviewRow to display an overview of an item.

DetailsParallax

Subclass of Parallax object that tracks overview row's top and bottom edge in DetailsFragment or DetailsSupportFragment.

DiffCallback

Callback that informs ArrayObjectAdapter how to compute list updates when using DiffUtil in ArrayObjectAdapter#setItems(List, * DiffCallback) method.

DividerPresenter

DividerPresenter provides a default presentation for DividerRow in HeadersFragment.

DividerRow

Used to represent divider in HeadersFragment.

FocusHighlightHelper

Sets up the highlighting behavior when an item gains focus.

FullWidthDetailsOverviewRowPresenter

Renders a DetailsOverviewRow to display an overview of an item.

FullWidthDetailsOverviewSharedElementHelper

Helper class to assist delayed shared element activity transition for view created by FullWidthDetailsOverviewRowPresenter.

GuidanceStylist

GuidanceStylist is used within a androidx.leanback.app.GuidedStepFragment to display contextual information for the decision(s) required at that step.

GuidedAction

A data class which represents an action within a .

GuidedActionDiffCallback

DiffCallback used for GuidedActions, see .

GuidedActionEditText

A custom EditText that satisfies the IME key monitoring requirements of GuidedStepFragment.

GuidedActionsStylist

GuidedActionsStylist is used within a androidx.leanback.app.GuidedStepFragment to supply the right-side panel where users can take actions.

GuidedDatePickerAction

Subclass of GuidedAction that can choose a date.

HeaderItem

A header item describes the metadata of a Row, such as a category of media items.

HorizontalGridView

A android.view.ViewGroup that shows items in a horizontal scrolling list.

HorizontalHoverCardSwitcher

A helper class for showing a hover card view below a HorizontalGridView.

ImageCardView

A subclass of BaseCardView with an ImageView as its main region.

ItemAlignmentFacet