Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to make custom navigation view animations like this one

How can i achieve an animation for the Navigation view, like this one ?

enter image description here

So far, I think it is only possible by writing a custom Navigation View, the question is just how it should look like. Or is there another Option ?

like image 665
Chris Sherlock Avatar asked Apr 29 '16 17:04

Chris Sherlock


1 Answers

FlowingDrawer is the answer of your question.

Add dependencies to your module level gradle :

dependencies {
    compile 'com.mxn.soul:flowingdrawer-core:1.2.2'
    compile 'com.nineoldandroids:library:2.4.0'
}

Define menu in your layout xml file

<com.mxn.soul.flowingdrawer_core.LeftDrawerLayout
    android:id="@+id/id_drawerlayout"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:clipChildren="false"/>

enter image description here

like image 57
Ravi Avatar answered Oct 29 '22 04:10

Ravi