Most visited

Recently visited

RowsFragment.MainFragmentRowsAdapter

public static class RowsFragment.MainFragmentRowsAdapter
extends MainFragmentRowsAdapter<RowsFragment>

java.lang.Object
   ↳ android.support.v17.leanback.app.BrowseFragment.MainFragmentRowsAdapter<android.support.v17.leanback.app.RowsFragment>
     ↳ android.support.v17.leanback.app.RowsFragment.MainFragmentRowsAdapter


Summary

Public constructors

RowsFragment.MainFragmentRowsAdapter(RowsFragment fragment)

Public methods

int getSelectedPosition()

返回选定的位置。

void setAdapter(ObjectAdapter adapter)

设置浏览行的可见性标题/悬停。

void setOnItemViewClickedListener(OnItemViewClickedListener listener)

在片段上设置项目单击的侦听器。

void setOnItemViewSelectedListener(OnItemViewSelectedListener listener)

设置项目选择侦听器。

void setSelectedPosition(int rowPosition, boolean smooth, Presenter.ViewHolderTask rowHolderTask)

选择一个行并在行上执行可选任务。

void setSelectedPosition(int rowPosition, boolean smooth)

选择一个行。

Inherited methods

From class android.support.v17.leanback.app.BrowseFragment.MainFragmentRowsAdapter
From class java.lang.Object

Public constructors

RowsFragment.MainFragmentRowsAdapter

RowsFragment.MainFragmentRowsAdapter (RowsFragment fragment)

Parameters
fragment RowsFragment

Public methods

getSelectedPosition

int getSelectedPosition ()

返回选定的位置。

Returns
int

setAdapter

void setAdapter (ObjectAdapter adapter)

设置浏览行的可见性标题/悬停。

Parameters
adapter ObjectAdapter

setOnItemViewClickedListener

void setOnItemViewClickedListener (OnItemViewClickedListener listener)

在片段上设置项目单击的侦听器。

Parameters
listener OnItemViewClickedListener

setOnItemViewSelectedListener

void setOnItemViewSelectedListener (OnItemViewSelectedListener listener)

设置项目选择侦听器。

Parameters
listener OnItemViewSelectedListener

setSelectedPosition

void setSelectedPosition (int rowPosition, 
                boolean smooth, 
                Presenter.ViewHolderTask rowHolderTask)

选择一个行并在行上执行可选任务。

Parameters
rowPosition int
smooth boolean
rowHolderTask Presenter.ViewHolderTask

setSelectedPosition

void setSelectedPosition (int rowPosition, 
                boolean smooth)

选择一个行。

Parameters
rowPosition int
smooth boolean

Hooray!