added in version 22.1.0
belongs to Maven artifact com.android.support:leanback-v17:28.0.0-alpha1
Deprecated since version 24.1.0

OnChildSelectedListener

public interface OnChildSelectedListener

android.support.v17.leanback.widget.OnChildSelectedListener


This interface was deprecated in API level 24.1.0.
Use OnChildViewHolderSelectedListener

Interface for receiving notification when a child of this ViewGroup has been selected.

Summary

Public methods

abstract void onChildSelected(ViewGroup parent, View view, int position, long id)

Callback method to be invoked when a child of this ViewGroup has been selected.

Public methods

onChildSelected

added in version 22.1.0
void onChildSelected (ViewGroup parent, 
                View view, 
                int position, 
                long id)

Callback method to be invoked when a child of this ViewGroup has been selected.

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.