Android APIs
public final class

HorizontalHoverCardSwitcher

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

Class Overview

Helper class that stay bellow a HorizontalGridView and shows a hover card and align the hover card left to left of selected child view. If there is no space when scroll to the end, right edge hover card will be aligned to right of parent view excluding right 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).
[Expand]
Inherited Methods
From class android.support.v17.leanback.widget.PresenterSwitcher
From class java.lang.Object

Public Constructors

public HorizontalHoverCardSwitcher ()

Public Methods

public 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

protected void insertView (View view)

protected void onViewSelected (View view)

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