SlidingMenu
SlidingMenu copied to clipboard
Disable clicks in content
Hi,
first thanks for the amazing Framework.
I got an issue with clicks in the content. Probaly I just to blind to find the correct setting.
I dont want the menu to be accessible via sliding. But now I am able to click in the content. So the content changes but its only visible for about 50dip. My content is a list fragment.
Is there any method to close the menu when the content is clicked? With sliding activated this works.
Regards in advance
Dave
PS. Excuse my english not my mother tounge...
Did you get a solution?????
hi.
no really i used a work around with an empty fragment and an onclicklistener which closed the menu.
regards
dqve Am 19.08.2014 08:21 schrieb "rishabhsri20" [email protected]:
Did you get a solution?????
— Reply to this email directly or view it on GitHub https://github.com/jfeinstein10/SlidingMenu/issues/667#issuecomment-52594659 .
Use this and this will solve your issue:
sm= getSlidingMenu(); sm.setShadowWidthRes(R.dimen.shadow_width); sm.setShadowDrawable(R.drawable.shadow); sm.setBehindOffsetRes(R.dimen.slidingmenu_offset); sm.setFadeDegree(0.35f); sm.setSlidingEnabled(true); sm.setTouchModeAbove(SlidingMenu.TOUCHMODE_NONE);
I had similar issue, enabling hardwareAcceleration in manifest solved it.