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?

1 Answer 1

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

6
  • it it slide left means when i click the right above button the above view slide to left
    – Ramz
    Nov 1, 2012 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 1, 2012 at 21:47
  • I added screenshots of this in action. Once you clone the 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 1, 2012 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 2, 2012 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 3, 2012 at 20:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.