slidingmenu 虚拟导航自动弹出布局不会自动变换的问题

解决方法 https://github.com/jfeinstein10/SlidingMenu/issues/680

It isn’t a hackish workaround, it is the solution. Since the project is no longer being maintained by the author, it is up to you to make such adjustments. You will need to download the source and import it to your project(s). SlidingMenu#attachToActivity, in the case statement for SLIDING_WINDOW, line 324 for me, add the following.

// Added to compensate for soft nav keys not sliding in Android 5.0+

if(Build.VERSION.SDK_INT >= 21)
setSystemUiVisibility(SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION);

I have many places in my current project, where I’m supporting back to SDK 11, where I am having to test SDK versions due to methods being deprecated and replaced. It’s just how it is.

你可能感兴趣的:(工作问题,android知识)