-
Notifications
You must be signed in to change notification settings - Fork 433
Home
Navigation Drawer made simple.
Setup Guide | Components | Functionalities | Theming |
---|---|---|---|
Set up a Navigation Drawer | Components | Functionalities | Theming |
A step-by-step guide to create a navigation drawer | A simple list of library components | All library functionalities informations you need | All you need to know for customize your drawer |
At this time, if you want to have working navigation drawer, the android project has given this to us: Creating a Navigation Drawer
It is useful, yes. But with an old style and it is very long to customize.
This library is thinked for change your way of thinking about navigation drawer.
####1. The drawer activity When I watch my olds project and see about the navigation drawer activity, I see a lot of codes for doing something that should be simple for the user. If I need to add a list element, I should change something like 20 lines of codes in different parts of my code.
This is crap.
The codes for the item should be all in the same place, and if I need to change something, I don't want to have lines and lines of code for confusing me.
The solution: An initialization method, where I can easily call some methods for adding drawer items.
####2. Sections
Remember the textview in your drawer list view? Exactly.
A section is a single item of the drawer, but it can have text notifications, icons, and different types of target. All In material design style.
In your initialization method, you can easy creating the sections that you needs, then you will add it to the drawer. stop. Need to move the first section to the last? Simply move the add call after the current last method. Done.
####3. Drawer header
Google Apps have drawer headers that shows you information about your accounts, with wonderful animations.
Following material design guidelines, this library allows you to create the same thing... in short.
In your initialization method, you can create accounts and add it to the drawer, like sections.
You are writing an app that not have accounts? no problem.
There are 4 types of drawer header, and you can choose what you want.
The user wants to remove his account? Obviously you can remove it at the runtime.