Android PopupWindow is hidden behind navigation buttons in Nexus 5

I have created a custom popup menu which is displaying fine on the S4 but the problem is that part of it gets hidden behind the navigation buttons on Nexus 5.

I have tried using the setSystemUiVisibility() but that doesn't help as the buttons reappear as soon as I touch the view.

I have tried looking for an answer but haven't had any luck.

Answers


The amount of content in your PopupWindow likely exceeds the screen real estate. Consider using a ScrollView in your PopupWindow's inflated layout.


Need Your Help

Got a confusing git error message

git github

Got the following message which doesn't seem to be common online: