DrawerLayout : Drawer hand? Drawer indicator? - android

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

Related

navigation drawer vs navigation view which is best and what is the diffrence

i m using navigation drawer in old project but i got new project in this project they used navigation view so what is the difference beet been these two. which is the best for good for customize .
NavigationDrawer is a panel that displays the App’s Navigation option from the left edge of the screen.
and NavigationView is the builtin class/tag through which you tell the drawer what it looks like.
NavigationView consists of two main elements (these are optional):
You have to tell the NavigationView if there is any header layout:
Menu in the NavigationView
If you don't want to use both then you don't need to use it. You can simply put your custom code (XML) inside DrawerLayout.
An easy example will help you to understand all the game.
Navigation View is a widget provided by the android which you can use inside a Drawer. Navigation View makes it very easy to create a navigation menu inside your app.
Refer this for more:
https://developer.android.com/reference/android/support/design/widget/NavigationView.html
Navigation Drawer is nothing but a container where your navigation menu resides. Either you can use NavigationView for creating a highly customizable menu or you can simply use a listview to provide the menu items.

how to set navigation drawer in bottom to up

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

ActionBar Navigation Drawer icon on the Right side

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.

Issue with Sliding Drawer and Animations

I am working on a project where I should not use any XML file and sliding Drawer is must. But I found that Sliding Drawer is not possible through java coding, For this reason I started working on animations where a layout should move Up and Down same as sliding Drawer & ended with nothing.
Could someone help me with this issue
You don't necessarily have to use the translate animation. You can use android's Sliding drawer. Also, there are many sliding drawer libraries on Github.
But if you do want to use your own drawer you need the translate animation. So, get started with that. You can visit this and this to get started.
All the best!

Implements a sliding menu without sliding drawer Android

I'm trying to implement a sliding menu without using the sliding drawer element deprecated. I see a lot of examples but all of them use sliding drawer or haven't complete code. Can you post some example or library to solve my problem?
Use this one
https://github.com/jfeinstein10/SlidingMenu
Easy to implement, just add java code of example and create your menu.xml
You can check out Navigation Drawer

Categories

Resources