Popup menu goes out of the screen
<p>Popup menu on inflate goes out of the screen for this activity, works fine for other</p>

<p><a href="https://i.stack.imgur.com/U6Exd.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/U6Exd.jpg" alt="enter image description here"></a></p>

<p>Extending custom AppCompatActivity</p>

<p>Styles:</p>

<pre><code>&lt;style name="AppTheme.ActionBar.TransparentContextTranscition" parent="AppTheme.NoActionBar"&gt;
    &lt;item name="android:windowActivityTransitions"&gt;true&lt;/item&gt;
    &lt;item name="android:statusBarColor"&gt;@android:color/transparent&lt;/item&gt;
    &lt;item name="android:windowTranslucentStatus"&gt;true&lt;/item&gt;
    &lt;item name="android:windowContentTransitions"&gt;true&lt;/item&gt;
    &lt;item name="android:windowLightStatusBar"&gt;true&lt;/item&gt;

    &lt;item name="android:itemBackground"&gt;@android:color/white&lt;/item&gt;
    &lt;item name="android:textColor"&gt;@android:color/black&lt;/item&gt;
    &lt;item name="drawerArrowStyle"&gt;@style/DrawerArrowStyle&lt;/item&gt;
    &lt;item name="android:popupMenuStyle"&gt;@style/PopupMenu&lt;/item&gt;
&lt;/style&gt;

&lt;style name="DrawerArrowStyle" parent="Widget.AppCompat.DrawerArrowToggle"&gt;
    &lt;item name="color"&gt;@android:color/white&lt;/item&gt;
&lt;/style&gt;

&lt;style name="PopupMenu" parent="@android:style/Widget.PopupMenu"&gt;
    &lt;item name="android:popupBackground"&gt;@android:color/white&lt;/item&gt;
&lt;/style&gt;
</code></pre>

<p>Java code</p>

<pre><code>holder.contextMenuView.setOnClickListener(new View.OnClickListener() {
        @Override
        public void onClick(View v) {
            final PopupMenu popup = new PopupMenu(v.getContext(), v);
            popup.inflate(R.menu.song_item_menu_album_inner_layout);
        }
});
</code></pre>

<p>Toolbar inflate menu works fine</p>

<p><a href="https://i.stack.imgur.com/Uivtc.png" rel="noreferrer"><img src="https://i.stack.imgur.com/Uivtc.png" alt="enter image description here"></a></p>