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!
I have an activity with orientation tag in manifest and 3 tabs with fragements. I added the sliding menu and I do not override the onConfirguratinChanged method.
If the sliding menu is closed and I change the orientation the menu is shown.
If the menu is shown and I change the orientation my app looks similar to the second picture at top of the post.
The error is raised if you try to call in onConfigurationChanged
if (getSlidingMenu().isBehindShowing())
toggle();
else
{
getSlidingMenu().getAbove().setCurrentItem(0); //call this and it behaves like the bug without onConfigChanged implementation, getAbove() was implemented by me to show the bug behaviour.
}
and if I implement this code
if (getSlidingMenu().isBehindShowing())
toggle();
else
{
getSlidingMenu().getAbove().setCurrentItem(1);
}
the sliding menu is shown if the orientation changed even it was not brought to the front befor orientation change
I can't see the image you say (here at Github). I think this bug is the same as mine see "Responsive UI bug", I've post a solution to this particular problem.
I have an activity with orientation tag in manifest and 3 tabs with fragements. I added the sliding menu and I do not override the onConfirguratinChanged method. If the sliding menu is closed and I change the orientation the menu is shown. If the menu is shown and I change the orientation my app looks similar to the second picture at top of the post.
The error is raised if you try to call in onConfigurationChanged if (getSlidingMenu().isBehindShowing()) toggle(); else { getSlidingMenu().getAbove().setCurrentItem(0); //call this and it behaves like the bug without onConfigChanged implementation, getAbove() was implemented by me to show the bug behaviour. } and if I implement this code if (getSlidingMenu().isBehindShowing()) toggle(); else { getSlidingMenu().getAbove().setCurrentItem(1); } the sliding menu is shown if the orientation changed even it was not brought to the front befor orientation change