Rashed Addosary
Rashed Addosary

Reputation: 71

Slide half the screen off on SlidingMenu

I'm using a SlidingMenu for Android

Is there a way that I can make it slide only half the screen not all the way to the end ?

Upvotes: 1

Views: 545

Answers (1)

Melquiades
Melquiades

Reputation: 8598

Use

getSlidingMenu().setBehindOffset(offsetValue);

where offsetValue determines how far the menu goes. If you want to have it go half the screen, first get your screedWidth, then divide by 2 and pass the value to setBehindOffset().

Upvotes: 2

Related Questions