nestedChildAt

fun <R> nestedChildAt(root: ViewGroup, vararg indices: Int): R

Nested childAt. Used to turn nightmares like

val layout = ((v.getChildAt(1) as ViewGroup).getChildAt(0) as ViewGroup).getChildAt(1) as LinearLayout

into the much nicer

val layout = Utils.nestedChildAt<LinearLayout>(v, 1, 0, 1)

Return

Child at the specified nested index

Parameters

root

The root that holds the children

indices

Indices of the children. They will be done in order