Facebook Slide menu-slide to right in android? - android

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?

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.

Related

Android - Slide Menu like in Uber

I am looking to implement a menu like used on the Android Uber app.
It seems to be like an action bar on top with 3 small settings stripes on left side. (probably not a real action bar)
When clicking in that area a black menu slides out from the left and occupies 70% of the screen.
The right side of the screen still showing the map is darkened to keep focus on the menu.
I like that style, it looks good and everyone immediately knows how to use it.
I would like to have the same but don't know where to start or if there is maybe something available that would do something similar.
The actionbar itself only offers the menu on top right which is better for pure settings.
I also experimented with a split action bar having the menu items on bottom but that also seems superior to the clean interface Uber provides.
You want the Android Navigation Drawer. It's an Android sanctioned navigation pattern and more details about it can be found here. For some more technical documentation and an example of how to use it, you can find a sample over here. It works great with the Action Bar so shouldn't need anything too custom outside of what the Android v4 compat library gives you.

Moving a view left of the screen

My android app UI have two parts- a menu bar (blue color) and content area (gray color).
Here red is the device screen.
The menu bar should open from left to right whene the hamburger menu is clicked.
I tried with ViewSwitcher but that shows only one view at a time.
What is the right method to implement it?
UPDATE: I am looking for the solution for API level 10 onwards.
In the newest version of the ADT you can select Navigation Drawer as navigation type when you create a new Activity. This automatically implements this type of navigation for you.
Alternatively, check out this tutorial: http://developer.android.com/training/implementing-navigation/nav-drawer.html
If you are happy with the navigation bar overlaying the content, then use the navigation drawer as suggested.
Alternatively check out:
https://play.google.com/store/apps/details?id=com.desarrollodroide.repos
There are many open source libraries that you can pick and test, and then decide which one to grab the code for.

How do I implement a slide-out menu pane similar to Google Maps and Twitter?

I am looking to implement something similar to the slide-out pane shown in Google Maps and also in Twitter(Click the settings button after performing a search).
The pane displays itself at the bottom and the user can either click on it or swipe upwards to reveal more information.
I want to implement something similar but I am not sure how to proceed. I have a simple ListView and when a user clicks an item, the slide-out pane should appear. How would I go about doing this?
I was thinking of using a context menu but according to the official docs, icons are not allowed to be placed there.
Check out AndroidSlidingUpPanel. It should be perfect for your needs. It can be also achieved using SlidingDrawer.
You can use a navigation drawer to make a slider menu.
You can see a good example here:
http://www.androidhive.info/2013/11/android-sliding-menu-using-navigation-drawer/

Android how to make menu bar that appears at the side of the screen? Like Google Plus, Facebook menu on Android devices

I am developing an app on Android and would like to use the similar menu bar like Google Plus or Facebook, when you click the button, the menu bar will slide in and will not occupy the whole screen. Any ideas on that?
Thanks.
A pretty popular library for accomplishing the 'sliding menu' effect (or 'drawer' as the design guidelines on the Android developer website prefer to call it) is Jeremy Feinstein's SlidingMenu. It's also compatible with ActionBarSherlock, in case your project is using that too. Unfortunately, at this stage there is no component built into the SDK that allows you to do easily accomplish the same thing.
There are also a couple of alternative implementations for a sliding menu (do a search either here on SO or Google), but I haven't checked those out for a little while. If I recall correctly, there are especially some variations in terms of whether the ActionBar is supposed to slide along with the content or stay fixed at the top of the screen.
You can use FrameLayout in parent view and use translate animation in menu layout to show the slide in and slide out effect.

Implement Facebook styled sliding menu sliding from right to left

I tried to implement sliding menu in my application. What i want is that there is a button on the top right corner of the screen. And sliding menu should come up from right to left which is reverse slide of facebook styled sliding. In Jfeinstein Sliding Menu, Sliding menu come out from left to right. I tried to implement the source to make it happen from right to left. But unfortunately, I still can't get it. Any ideas would be appreciate.
There is a branch called "sliding right" in Jfeinstein Sliding Menu on github.
This is a demo project to explore how to implement a sliding menu like Facebook and others use.
android-sliding-menu-demo
android-fb-like-slideout-navigation
I made a video (3 parts) on youtube on how to make a sliding menu like the on you are looking for. I show you how to set up the project and get everything linked up.
http://www.youtube.com/watch?v=tJJMyzdB9uI
The cool thing about ECSlidingViewController (Its the one I use) is that just about everything you want to configure (how far a view slides, the animations, left or right side) is done with a single line of code. When setting it up, I tell you where you can change it to be left or right side.
Hope this helps.

Categories

Resources