An Android library that allows you to easily create applications with slide-in menus. You may use it in your Android apps provided that you cite this project and include the license in your app. Thanks!
Apache License 2.0
11.07k
stars
5.03k
forks
source link
Activity with several fragment will freeze in android 5.0 device once open menu #754
In android 5.0 device, if an activity has serveral fragment and a slidingmenu, once open the menu,the activity view will not change or refresh, like been freezed,you can't change fragment or scroll the list.it will only happen in android 5.0 devices ,like huawei p8,
How to sovle this problem?
look at SlidingMenu.java on line 1005, change:
boolean layer = percentOpen > 0.0f && percentOpen < 1.0f;
into:
boolean layer = percentOpen >= 0.0f && percentOpen <= 1.0f;
In android 5.0 device, if an activity has serveral fragment and a slidingmenu, once open the menu,the activity view will not change or refresh, like been freezed,you can't change fragment or scroll the list.it will only happen in android 5.0 devices ,like huawei p8, How to sovle this problem? look at SlidingMenu.java on line 1005, change:
boolean layer = percentOpen > 0.0f && percentOpen < 1.0f;
into:boolean layer = percentOpen >= 0.0f && percentOpen <= 1.0f;
for more detail ,such as bug demo ,please see my blog on csdn here: http://blog.csdn.net/fuchaosz/article/details/51657984
中文: 在Android 5.0的机器上,如果一个Activity有多个Fragment,那么第一次打开SlidingMenu后,Activity界面就不能刷新了,也不能切换Fragment,解决的方法是,将SlidingMenu.java的1005行,由:
boolean layer = percentOpen > 0.0f && percentOpen < 1.0f;
改为:boolean layer = percentOpen >= 0.0f && percentOpen <= 1.0f;
更多详情,已经bug示例请看我的csdn博客: http://blog.csdn.net/fuchaosz/article/details/51657984