I want create navigation drawer in the bottom , when click button open navigation in bottom to up
like this in link
http://imgh.us/Screenshot_2015-08-13-21-27-20_1.png
The default Navigation drawer does not work that way. Consider using
https://github.com/wunderlist/android-sliding-layer-lib
It allows you to configure a view/layout(with your content) that can slide into your screen from any direction.
This answer may be too late for the original asker, but you could get this effect by using a Sliding Drawer. It has since been deprecated, however, there are some nice open source alternatives around, like the ones in the links below:
https://github.com/umano/AndroidSlidingUpPanel
https://github.com/wunderlist/android-sliding-layer-lib
https://github.com/Ali-Rezaei/SlidingDrawer
Related
I want something that should look like this.
The content moving aside for the nav drawer
You need to make a custom Drawer, the regular Drawer doesn't support that functionality. You also cannot use the drawer property of Scaffold. You would have to make a completely dynamic page.
In this video tutorial Fluttery creates a completely custom Drawer, so you might wanna have a look at it for some instructions:
https://www.youtube.com/watch?v=6CEjnCVdgRM&t=7s
In this type of Navigation Drawer, when you swipe from the left edge of the screen, current screen moves to right side while resizing and the Navigation Drawer become visible by a transparency transition effect while its resizing too. And also the Navigation Drawer shows up from behind of the current activity.
Like this one, my "Music" application:
So, how can I achieve this kind of Navigation Drawer? Is there any library, tutorial or...?
Many thanks!
its not navigation drawer (navigation drawer always comes from the top of screen).
you can use sliding layout.
https://developer.android.com/reference/android/support/v4/widget/SlidingPaneLayout.html
The closet library I found is SlidingMenu.
An example on Google Play:
https://play.google.com/store/apps/details?id=com.slidingmenu.example&hl=en
I want to show the action bar navigation icon on the Right side of the ActionBar [instead of the default left side].
Also I need to have the same slide in animation of the Navigation Drawer icon as in the Gmail and Google plus application.
Is there any way of achieving that animation on the right side easily.
Any kind of help or suggestion is appreciated.
Thanks in advance!
This is how I've implemented the right navigation drawer. Just need to open and close the drawer based on Gravity. In this example they use Gravity.RIGHT, I use Gravity.END. I'm not sure which one is right or wrong. Hope this helps.
This link for ActionBar animation provides some good information, and should give a good base for doing the navigation drawer icon animation.
I don't know how to really call this but I want to make menu drawer like in drawerlayout but when drawer is close there will be like drawer indicator a;ways float on the left side of screen like this
open
close
is there any way to do like this?
I found library https://github.com/NikolaDespotoski/DrawerLayoutEdgeToggle works well as i wish for.
For this you should be using the SlidingPaneLayout. Here are some examples:
http://www.javacodegeeks.com/2013/10/android-slidingpanelayout-tutorial.html
http://www.recursiverobot.com/post/59642335041/trying-slidingpanelayout-with-fragments-in-android
Because you are working with Fragments here you could tweak the layout so to keep the indicator in the layout.
Maybe SlidingMenu + ActionbarSherlock is a better choice.
Go for Sliding Menu using Drawer which best suites your functionality.
Also you can check the guide for Navigation Drawer in Android
Is it possible to use the NavigationDrawer as menu coming from top to bottom instead of left to right?
This is umano app's sliding up panel, I used this in my app, You can easily convert it to top to bottom
https://github.com/umano/AndroidSlidingUpPanel
Yes , ofcourse you can but it may create a confusion between the notification screen of android OS and your apps navigation drawer so its a good practice to put your navigation drawer either from left side or from right .
for more info you can have a look at this articles
http://developer.android.com/training/implementing-navigation/nav-drawer.html
http://developer.android.com/design/patterns/navigation-drawer.html