Sliding effect for opening menu in android - android

I want to open a sliding menu when we click on top button. Please check the below image. when i click on red marked image/button then how can i open a sliding menu/list items as you can see in 2nd image.
When this menus gets open then main window get slide toward right side of the screen where small part of the main screen will be visible.
I am not sure if this menu is a list of view!! Please help me out.

The best Library doing that is SlindingMenu from jfeinstein10 on Github.

Design your layout with two panels. Left panel with visibility GONE. And then in onClick method of your button at top-right, make visibility of left panel VISIBLE. You can create a Animation to open left panel smothly.

Related

Android Sliding Panel with Showing icons only when it is collapsed

I want to implement sliding Menu like below images ,I am using SlidingPaneLayout to create Left Sliding Menu but How i can make it to behave like below images.
Now when some one close it by Either top left icons click or by drag to left it should be close like below shown image.
This image are just for giving idea of what i am try to do in my sliding Menu .
Let me known that some known how to achieve such in android.

Add a small tab on left drawer

I am new to android dev. I have a problem of adding a small tab on my left drawer.
Because it may be hard for user to detect that I have a left drawer so I want to add a tab to let people notice.
Here's the screenshot of my app.enter image description here
I hope it can have a small tab like this
Can you give me some hint to start?
You can just put a view on the left of your layout using relative layout and on click of that view you can just open the drawer by calling:
mDrawerLayout.openDrawer(Gravity.START)
This will open the drawer in the same way it open when action bar icon is clicked.

Custom animate navigation drawer

I have implemented Google's navigation drawer and I would like to add a custom animation when I click a menu item.
Ideally the menu would slide back as if closing, leaving a small sliver of the menu open. A dialog would open with an animation, originating from the space beside the selected menu item.
Something like this..
I tried to animate the left_drawer element on the x axis using ObjectAnimator, but this displaces the whole screen.
Can anyone help?
If you want it so the drawer is only peaking, try using drawerLayout.closeDrawers(true).
According to the source though, this closes all drawers (if you have more then one).
DrawLayout source

Android SlidingUpPanelLayout and slidinguppanel

I am having problem to incorporate the sliding menu and sliding up panel from
http://www.michenux.net/android-sliding-menu-part-22-690.html
Android: Up/down animated sliding menu
(https://github.com/umano/AndroidSlidingUpPanel)
When it first launched, the bottom panel showed up ok, I did a click/touch on the
sliding up panel, it goes up alright to show the second screen. Problem come when I click/touch
again on the second screen, it slided down but the screen overshoot to lower screen.
It doesn't goes back to the original location.
I have marked problem with "?????" and red color.
I discard the use of the sliding from left menu. The Android's Navigation Drawer suggested by the slidinguppannel solved this problem.
http://developer.android.com/training/implementing-navigation/nav-drawer.html

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