SlidingMenu icon indicating copy to clipboard operation
SlidingMenu copied to clipboard

Disable clicks in content

Open dagillet opened this issue 10 years ago • 4 comments

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...

dagillet avatar Aug 06 '14 14:08 dagillet

Did you get a solution?????

rishabhsri20 avatar Aug 19 '14 06:08 rishabhsri20

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 .

dagillet avatar Aug 19 '14 06:08 dagillet

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);

rishabhsri20 avatar Aug 19 '14 07:08 rishabhsri20

I had similar issue, enabling hardwareAcceleration in manifest solved it.

arshadtehrani avatar Jun 06 '15 07:06 arshadtehrani