I'm trying to create a navigation drawer like this:
facebook side chat
inside the navigation drawer,I need a login page instead of a list,like this:
side login page
I didn't find any helpful libraries for doing this (SlidingMenu was the library nearest to the solution) and I found just side menu with a list of elements.
Could you please suggest me a solution/library to use?
Thank you very much.
You can implement by overriding drawer slide listener. Here it is well explained https://stackoverflow.com/a/33588398/4804264
You can write a custom Viewgroup to control the View(your side menu).
And using the ValueAnimator, you can slide the menu from the side.
Custom components
Custom
Property Animation
Related
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.
I use this library:
https://github.com/mikepenz/MaterialDrawer
I would like to have a right NavigationDrawer with a ListView (or a lot of items) inside and I get items from DB inside the Fragment and when user click on items on the NavigationDrawer I get data from another DB and show it on Fragment.
and I have a questions:
is possible to create a right Drawer inside a Fragment? or is better to create a new right Drawer in MainActivity and change the navigation item inside the Fragment?
Just use brand new Navigation View from recenlty released Android Design Support Library by Google.
Here are links for you:
official documentation, always a good read: https://developer.android.com/reference/android/support/design/widget/NavigationView.html
nicely written blog post about Navigation View: http://antonioleiva.com/navigation-view/
and last but not least, sample app using new Android Design Library: https://github.com/antoniolg/MaterializeYourApp
To have Navigation View on the right, just set android:layout_gravity to end.
As from design point of view, you should always use left sided Navigation Drawer, it is possible to make it right sided, but its recommended to leave it at the left side.
Another thing is that you do not need to use 3rd party navigation drawer libraries.Since there is a Design library by google, which supports the material design navigation view.
Here is a link for the library:
https://developer.android.com/tools/support-library/features.html
And here is another useful link:
https://guides.codepath.com/android/Design-Support-Library
Here is the link for the Navigation Drawer: https://guides.codepath.com/android/Fragment-Navigation-Drawer
As for your question the appropriate way is to create the drawer always in the main activity onCreate() method.
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
I am trying to implement a feature in android which is used in Google Drive app. When you click on the info button of one of your file you get a sliding menu on the right. You can find the image here. I don't know if this is a custom implementation of Sliding Menu or if a class exists to do this. Appreciate if anyone could help me implement this. I want this on a button click and the list view should appear from right.
You need to use a DrawerLayout. The View you add with android:layout_gravity="end" will be at the right.
To open it on click, use drawerLayout.openDrawer(Gravitiy.END);.
I think you want to implement Navigation Drawer. You can find a sample ready to run application from Android Developer Tutorial
as I pursue my study on android app development I came across this app from apple and I was wondering if, is there a way to imitate the navigation drawer in this screen shot?!
See it's an expandable navigation drawer. a list view with some items that are expandable. Is there an actual way to imitate this on android?
Thank you very much again for all of your help.
You can recreate that drawer.
You can use the ExpandableListView within the Navigation Drawer. And of course you'll have to create your own parent and child item layouts for the listview. As well as appropriate styling. You can use tutorials to do this, first create the navigation drawer, then create the expandablelistview and put it within the navaigation drawer layout.
I'd also like to note on that screen shot, the drawer is incorrect. It should slide out below the action bar, over-top of the activity (like in the link). It should not slide the entire application window to the right like how some apps do.
Use a Custom ListView for this, see here for that: How To Create A Custom Listview - Android Example
Also, you will have to create specialized buttons that have a different look than standard holo buttons, see here for that: How to create custom button in Android using XML Styles
Finally, I do not believe it is possible to directly clone the navigation drawer, as the app you showed doesn't have an open sourced app (as far as I know).