SlidingMenu icon indicating copy to clipboard operation
SlidingMenu copied to clipboard

Activity with several fragment will freeze in android 5.0 device once open menu

Open fuchaosz opened this issue 9 years ago • 1 comments

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

fuchaosz avatar Jun 14 '16 06:06 fuchaosz

good job

wildish avatar Jul 08 '16 09:07 wildish