jfeinstein10 / SlidingMenu

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!
Apache License 2.0
11.08k stars 5.05k forks source link

Right Sliding Menu does not work as expected #616

Open Shajeel-Afzal opened 10 years ago

Shajeel-Afzal commented 10 years ago

Hi!

I am showing SlidingMenu on both left and right side of the Activity.

Following function is creating sliding menu on the right side:

private void createContactsRightSlidingMenu() { mRightSlidingMenu = new SlidingMenu(this); mRightSlidingMenu.setMode(SlidingMenu.RIGHT); mRightSlidingMenu.setTouchModeAbove(SlidingMenu.TOUCHMODE_MARGIN); mRightSlidingMenu.setShadowWidthRes(R.dimen.shadow_width); // mRightSlidingMenu.setShadowDrawable(R.drawable.shadow); mRightSlidingMenu.setBehindOffsetRes(R.dimen.slidingmenu_offset); mRightSlidingMenu.setFadeDegree(0.35f); mRightSlidingMenu.attachToActivity(this, SlidingMenu.SLIDING_CONTENT); mRightSlidingMenu .setMenu(R.layout.live_help_right_navigation_panel_layout); }

I am expecting that right sliding menu will shown when i will swipe it from right edge of the screen to left side but it even appears/shows when i swipe right to left near the edge.

However Sliding menu on the left side works as expected.

Thanks.

mjkohoh commented 10 years ago

In SlidingMenu,you should use LEFT_RIGHT mode to realize your idea.

Shajeel-Afzal commented 10 years ago

Hi Thanks for response. But i think LEFT_RIGHT mode is related to swiping from left to right or may be i am wrong.

Waiting for your confirmation.

mjkohoh commented 10 years ago

In LEFT_RIGHT MODE,you will get two SlidingMenu.One on left and one on right.In addition,you shoud use setSecondaryMenu and other method to control the right SlidingMenu

mjkohoh commented 10 years ago

I don't like this kind of design.how about you? @Shajeel-Afzal