lightbulb_outline Help shape the future of the Google Play Console, Android Studio, and Firebase. Start survey
added in version 22.1.0
belongs to Maven artifact com.android.support:leanback-v17:28.0.0-alpha1

HorizontalHoverCardSwitcher

public final class HorizontalHoverCardSwitcher
extends PresenterSwitcher

java.lang.Object
   ↳ android.support.v17.leanback.widget.PresenterSwitcher
     ↳ android.support.v17.leanback.widget.HorizontalHoverCardSwitcher


A helper class for showing a hover card view below a HorizontalGridView. The hover card is aligned to the starting edge of the selected child view. If there is no space when scrolling to the end, the ending edge of the hover card will be aligned to the ending edge of the parent view, excluding padding.

Summary

Public constructors

HorizontalHoverCardSwitcher()

Public methods

void select(HorizontalGridView gridView, View childView, Object object)

Select a childView inside a grid view and create/bind a corresponding hover card view for the object.

Protected methods

void insertView(View view)
void onViewSelected(View view)

Called when a view is bound to the object of select(Object).

Inherited methods

From class android.support.v17.leanback.widget.PresenterSwitcher
From class java.lang.Object

Public constructors

HorizontalHoverCardSwitcher

added in version 22.1.0
HorizontalHoverCardSwitcher ()

Public methods

select

added in version 22.1.0
void select (HorizontalGridView gridView, 
                View childView, 
                Object object)

Select a childView inside a grid view and create/bind a corresponding hover card view for the object.

Parameters
gridView HorizontalGridView

childView View

object Object

Protected methods

insertView

added in version 22.1.0
void insertView (View view)

Parameters
view View

onViewSelected

added in version 22.1.0
void onViewSelected (View view)

Called when a view is bound to the object of select(Object).

Parameters
view View