Activity view in Android Lollipop navigation bar

the navigation bar overlaps my activity view below. Same problem as here: Android navigation bar overlapping in my opinion

The problem seems to only happen on Android Lollipop. On my Moto G with KitKat 4.4.4. I do not have this problem. I do not know why this problem is only associated with Lollipop.

My problem is that the @ ps-glass postet solution does not work for me, somehow setting fitsSystemWindow = true . I tried this with a theme or with a layout file directly, nothing has worked for me so far.

Here is the image: https://drive.google.com/file/d/0B5g_MttTC7ZIQzNfS3Y2dVFKSFk/view?usp=sharing

You can see only a little text, the rest is superimposed by the navigation bar.

+8
android
source share
1 answer

I found out that this problem is related to the library we are using: https://github.com/jfeinstein10/SlidingMenu and other people have this problem also after they have updated their AppCompat to v21.

Some solutions have been posted here https://github.com/jfeinstein10/SlidingMenu/issues/680 and another one here Does the inverse of the getDecorView method include displaying the navigation bar on the candy?

The solution from https://stackoverflow.com/users/715451/saulobrito works for me now, and this is the easiest way, I think.

 <style name="Theme" parent="FrameworkRoot.Theme"> <item name="android:windowDrawsSystemBarBackgrounds">false</item> </style> 

I put this piece of code in my theme in the res/values-v21 .

+17
source share

All Articles