childOrNull

inline fun <V : View> ViewGroup.childOrNull(index: Int): V?

Get the view V by index in its parent view.

Receiver

ViewGroup

Return

V or null.

Parameters

index

the index of the view.

See also