3

I used maddeye slide menu library to implement a Facebook like slide bar. It works fine, sliding from right to left.

Now what I want is to slide from left to right as the new Facebook app in Android.

What modification should I use to make this change? Does anyone know how to slide both sides as the new Facebook app?

Jason Sturges
  • 15,855
  • 14
  • 59
  • 80
Ramz
  • 7,116
  • 6
  • 63
  • 88

1 Answers1

7

I would try the android-menudrawer project at https://github.com/SimonVT/android-menudrawer which just hit 1.0.0 thanks to Jake Wharton.

I tried it out yesterday and it looks like it fits your needs.

If you build and install the sample APK, you'll see an example called "Right menu" which is what I think you're looking for. The other examples are variations of the normal sliding menu.

Here are screenshots of this sample APK (MenuDrawerSamples) in action. The first screenshot shows the Right Menu example with the menu drawer closed. Tap on the overflow menu item in the upper right corner and then it reveals the menu, as shown in the second screenshot. You could trigger it instead from another action bar button or other button if desired.

Right Menu - Closed Right Menu - Open

louielouie
  • 14,881
  • 3
  • 26
  • 31
  • it it slide left means when i click the right above button the above view slide to left – Ramz Nov 01 '12 at 21:26
  • hey louielouie i try to implemented this but full fo error and also in the librray folder resource in empty if u have the working code please share – Ramz Nov 01 '12 at 21:47
  • I added screenshots of this in action. Once you clone the https://github.com/SimonVT/android-menudrawer project, take a look at the RightMenuSample.java file which will give you the working code that you need. – louielouie Nov 01 '12 at 21:51
  • thank u bro at lat i got the solution from you answer i dont know why this quetion closed any way friends follow this answer it works thank you louielouies for sharing this data:) – Ramz Nov 02 '12 at 20:06
  • 2
    louielouie today i implemented this answer sucessfully in my project and worked 100% now i can slide my view in two sides thanks a lot – Ramz Nov 03 '12 at 20:39
  • Hi I implemented this project after that my layout doesnot scroll neither main nor drawer listview plz suggest me – Dilip Dec 01 '14 at 13:06