findViewByConditionAs

fun <T : View> ViewGroup.findViewByConditionAs(condition: (view: View) -> Boolean): T?

For-each the view group and find the view by condition, and cast to the T type.

Return

view or null if not found

Parameters

condition

condition