Android: How to create a navigation drawer with custom layout

610 Views Asked by At

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.

2

There are 2 best solutions below

1
Sujith Niraikulathan On

You can implement by overriding drawer slide listener. Here it is well explained https://stackoverflow.com/a/33588398/4804264

0
Alan Chuang On

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