public interface OnChildSelectedListener
| android.support.v17.leanback.widget.OnChildSelectedListener |
此接口已弃用。
使用OnChildViewHolderSelectedListener
当ViewGroup的一个孩子被选中时接收通知的界面。
Public methods |
|
|---|---|
abstract void |
onChildSelected(ViewGroup parent, View view, int position, long id) 当此ViewGroup的子项被选中时,将调用回调方法。 |
void onChildSelected (ViewGroup parent, View view, int position, long id)
当此ViewGroup的子项被选中时,将调用回调方法。
| Parameters | |
|---|---|
parent |
ViewGroup: The ViewGroup where the selection happened. |
view |
View: The view within the ViewGroup 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. |
id |
long: The id of the child that is selected, or NO_ID if no view is selected. |