android - SlidingMenu and ViewPager with API13 (Honeycomb) -
i´m experiencing weird problem slidingmenu library , viewpager when running on devices android 3.2 (honeycomb).
the problem appears when "toggle" slidingmenu show menu hidden on left of app. when this, both contentview , behingcontentview stops responding touch events.
thinking problem related application, downloaded last version of abs , slidingmenu library , configured new project using built-in example comes slidingmenu and, surprise, same behavior occurred viewpager example.
these steps did:
- configure emulator using api level 13 , 7" wsvga (tablet);
- download abs , slidingmenu git;
- setup new project, using compatibility library android-support-v41 (also tested android-support-v4);
- solved problem 'getsupportactionbar() undefined' described here: https://github.com/jfeinstein10/slidingmenu/issues/145;
- run 'example application' , choose 'viewpager' example;
- swipe pages right , left, without opening menu;
- open menu. see lists don´t scroll expected;
- close menu. see viewpager doesn´t responds touch events anymore;
notice behavior reported on android 3.2 devices. have same application running on 2.x , on 4.x devices, without problem.
also, noticed example application downloaded google play doesn´t have problem.
does have advice? lot!
edit 1
tested on real device, , confirmed behavior. have advice?
i had same problem , fixed using following work-around.
replace these lines in slidingmenu.java:
@targetapi(build.version_codes.honeycomb) public void managelayers(float percentopen) { if (build.version.sdk_int < 11) return;
with:
@targetapi(build.version_codes.ice_cream_sandwich) public void managelayers(float percentopen) { if (build.version.sdk_int < 14) return;
Comments
Post a Comment