Most visited

Recently visited

OnChildViewHolderSelectedListener

public abstract class OnChildViewHolderSelectedListener
extends Object

java.lang.Object
   ↳ android.support.v17.leanback.widget.OnChildViewHolderSelectedListener


当ViewGroup的一个孩子被选中时接收通知的界面。

Summary

Public constructors

OnChildViewHolderSelectedListener()

Public methods

void onChildViewHolderSelected(RecyclerView parent, RecyclerView.ViewHolder child, int position, int subposition)

当此ViewGroup的子项被选中时,将调用回调方法。

Inherited methods

From class java.lang.Object

Public constructors

OnChildViewHolderSelectedListener

OnChildViewHolderSelectedListener ()

Public methods

onChildViewHolderSelected

void onChildViewHolderSelected (RecyclerView parent, 
                RecyclerView.ViewHolder child, 
                int position, 
                int subposition)

当此ViewGroup的子项被选中时,将调用回调方法。

Parameters
parent RecyclerView: The RecyclerView where the selection happened.
child RecyclerView.ViewHolder: The ViewHolder within the RecyclerView that is selected, or null if no view is selected.
position int: The position of the view in the adapter, or NO_POSITION if no view is selected.
subposition int: The index of which ItemAlignmentFacet.ItemAlignmentDef being used, 0 if there is no ItemAlignmentDef defined for the item.

Hooray!