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.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值