Most visited

Recently visited

HorizontalHoverCardSwitcher

public final class HorizontalHoverCardSwitcher
extends PresenterSwitcher

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


HorizontalGridView下方显示悬停卡片视图的助手类。 悬停卡与所选子视图的起始边缘对齐。 如果在滚动到结尾时没有空间,则悬停卡的结束边将与父视图的结束边对齐,不包括填充。

Summary

Public constructors

HorizontalHoverCardSwitcher()

Public methods

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

在网格视图内选择一个childView并为该对象创建/绑定相应的悬停卡片视图。

Protected methods

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

当视图绑定到 select(Object)的对象时 select(Object)

Inherited methods

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

Public constructors

HorizontalHoverCardSwitcher

HorizontalHoverCardSwitcher ()

Public methods

select

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

在网格视图内选择一个childView并为该对象创建/绑定相应的悬停卡片视图。

Parameters
gridView HorizontalGridView
childView View
object Object

Protected methods

insertView

void insertView (View view)

Parameters
view View

onViewSelected

void onViewSelected (View view)

当视图绑定到 select(Object)的对象时 select(Object)

Parameters
view View

Hooray!