OnChildSelectedListener
public interface OnChildSelectedListener
Interface for receiving notification when a child of this ViewGroup has been selected.
Summary
Public methods |
|
|---|---|
abstract void |
Callback method to be invoked when a child of this ViewGroup has been selected. |
Public methods
abstract voidonChildSelected(
@NonNull ViewGroup parent,
@Nullable View view,
int position,
long id
)
Callback method to be invoked when a child of this ViewGroup has been selected.
| Parameters | |
|---|---|
@NonNull ViewGroup parent |
The ViewGroup where the selection happened. |
@Nullable View view |
The view within the ViewGroup that is selected, or null if no view is selected. |
int position |
The position of the view in the adapter, or NO_POSITION if no view is selected. |
long id |
The id of the child that is selected, or NO_ID if no view is selected. |