如何制作像这样的自定义导航视图动画
How to make custom navigation view animations like this one
如何实现导航视图的动画,就像这个一样?
到目前为止,我认为只有编写自定义导航视图才有可能,问题只是它应该是什么样子。或者还有其他选择吗?
FlowingDrawer 是您问题的答案。
将依赖项添加到模块级别 gradle :
dependencies {
compile 'com.mxn.soul:flowingdrawer-core:1.2.2'
compile 'com.nineoldandroids:library:2.4.0'
}
在布局中定义菜单 xml 文件
<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"/>
如何实现导航视图的动画,就像这个一样?
到目前为止,我认为只有编写自定义导航视图才有可能,问题只是它应该是什么样子。或者还有其他选择吗?
FlowingDrawer 是您问题的答案。
将依赖项添加到模块级别 gradle :
dependencies {
compile 'com.mxn.soul:flowingdrawer-core:1.2.2'
compile 'com.nineoldandroids:library:2.4.0'
}
在布局中定义菜单 xml 文件
<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"/>