I use AppCompat v21 with the "NoActionBar" style and add an Action / Toolbar to onCreate .
SlidingMenu of Feinstein is also added, which causes the problem that the activity (and, therefore, the internal fragments) overlap with the Android navigation buttons (it is not fully shown, cropped at the bottom)
if i add:
android:layout_marginBottom="48dp"
everything is visible in the layout (of course).
In Android 4.4. everything is displayed correctly.
What am I missing on Android L using lib support?
SlidingMenu added to onCreate:
super.onCreate(..) setContentView(..) menu = new SlidingMenu(this); menu.setMode(SlidingMenu.LEFT); menu.setTouchModeAbove(SlidingMenu.TOUCHMODE_MARGIN); menu.attachToActivity(this, SlidingMenu.SLIDING_WINDOW); menu.setMenu(R.layout.menu); menu.setBehindWidthRes(200dp);
Decision:
The question is listed here https://github.com/jfeinstein10/SlidingMenu/issues/680 (including solution)
Slding Menu to SLIDING_CONTENT OR: update the SlidingMenu source like mentioned in the link aboce
The best solution:
(also works with Samsung devices on 5.0) - provided via
Adding the following lines to the SlidingMenu constructors worked for me. I did not need to make any other code changes.
if(Build.VERSION.SDK_INT >= 21) setSystemUiVisibility(SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION)
android android-5.0-lollipop appcompat android-actionbaractivity jfeinstein
ddd
source share