---
title: "isPopupLayout"
description: "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."
type: "function"
---

<div class='type'>Function</div>


<a id='references'></a>
<div class='sourceset sourceset-android'>Android</div>


```kotlin
@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. |




