SlidingMenu icon indicating copy to clipboard operation
SlidingMenu copied to clipboard

using toggle()

Open akkawi opened this issue 13 years ago • 4 comments

hi there, Im using the slidingmenu with getSlidingMenu().setMode(SlidingMenu.LEFT_RIGHT);

i can drag per Finger lfet and right which is working perfect,

now here comes my problem .. im using this to toggle the menu when clicking on the home button : @Override public boolean onOptionsItemSelected(MenuItem item) { switch (item.getItemId()) { case android.R.id.home: if(getSlidingMenu().isMenuShowing())
getSlidingMenu().toggle(); else getSlidingMenu().toggle(); } return true; }

as known toggle will show and hide the menu, BUT only the left side .. now i would like to use another button i added on the top right of the actionbar to toggle the right side of the menu. i thought maybe toggle(left) toggle(right) would be a solution but it is not implemented, so how to make the right menu appear when clicking on a XXX button.

thanks alo, a great menu.

akkawi avatar Jan 17 '13 12:01 akkawi

showSecondaryMenu()

jfeinstein10 avatar Jan 28 '13 15:01 jfeinstein10

thank you. i dunno how i missed that !.

akkawi avatar Jan 28 '13 16:01 akkawi

Thank you Jeremy Feinstein , You have made my app development easier :smile:

ghost avatar Mar 10 '15 08:03 ghost

Thank you for the help.

Bhavdip avatar Mar 21 '16 08:03 Bhavdip