findViewById

fun <T : View?> View.findViewById(idName: String): T

The same as View.findViewById, but takes the name of the id instead.

Return

a view with the given id in the layout, or null if it is not found

Parameters

idName

the name of the id resource