nested Child At
Nested childAt. Used to turn nightmares like
val layout = ((v.getChildAt(1) as ViewGroup).getChildAt(0) as ViewGroup).getChildAt(1) as LinearLayout
Content copied to clipboard
into the much nicer
val layout = Utils.nestedChildAt<LinearLayout>(v, 1, 0, 1)
Content copied to clipboard
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