2016-04-29 13 views
10

このようなナビゲーションビューのアニメーションはどうすればできますか?このようなカスタムナビゲーションビューのアニメーションを作成する方法

enter image description here

これまでのところ、私はそれがナビゲーションビュー、質問はそれはのようになりますどれだけあるカスタムを書き込むことによってのみ可能だと思います。それとも別のオプションがありますか?

+1

が見るあなたのレイアウトxmlファイルhttp://stackoverflow.com/questions/18070831/にメニューを定義しますドロワーレイアウトをアニメーションでプログラムで開くことができます –

+3

FlowingDrawer:https://github.com/mxn21/FlowingDrawerに従ってください。また、FlabbyListView:https://github.com/jpardogo/FlabbyListView。これはあなたを助けるかもしれません。 – Chitrang

答えて

10

FlowingDrawerはあなたの質問の答えです。

あなたのモジュールレベルのGradleへの依存関係を追加します。

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

<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

関連する問題