OnChildSelectedListener


interface OnChildSelectedListener


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

Summary

Public functions

Unit
onChildSelected(parent: ViewGroup, view: View?, position: Int, id: Long)

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

Public functions

onChildSelected

Added in 1.0.0-alpha03
Deprecated in 1.0.0-alpha03
fun onChildSelected(parent: ViewGroup, view: View?, position: Int, id: Long): Unit

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.