hasAncestor

fun View.hasAncestor(ancestor: View): Boolean

Checks if this view has the specified ancestor.