findViewByCondition

fun ViewGroup.findViewByCondition(condition: (view: View) -> Boolean): View?

For-each the view group and find the view by condition.

Return

view or null if not found

Parameters

condition

condition