You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered: