isPopupLayout

Function
Android
@TestOnly
fun isPopupLayout(view: View, testTag: String? = null): Boolean

Returns whether the given view is an underlying decor view of a popup. If the given testTag is supplied it also verifies that the popup has such tag assigned.

Parameters

view View to verify.
testTag If provided, tests that the given tag in defined on the popup.