• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Popup Window shows in different positions

  • Thread starter Thread starter Simplicissimus
  • Start date Start date
S

Simplicissimus

Guest
Hello, I want the window to appear above the action bar.

Code:
window.showAtLocation(changeTextSize, Gravity.BOTTOM, 0, bottomNavigationView.height.toInt())

Action bar is 216 pixels height on my phone with 480 DPI and 252 pixels on the virtual phone with 560 DPI.

How could I render window above the bar?
s202w3c6akb41.png
 
Fixed by adding in styles. xml line :cool:
Code:
<item name="android:windowDrawsSystemBarBackgrounds">false</item>
It requires Android 5.0+
 
Back
Top Bottom