added in version 1.0.0
belongs to Maven artifact androidx.leanback:leanback:1.0.0-beta01
Deprecated since version 1.0.0

OnChildSelectedListener

public interface OnChildSelectedListener

androidx.leanback.widget.OnChildSelectedListener


This interface was deprecated in API level 1.0.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 1.0.0
public 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.

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.