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

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).
[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).