Java 如何制作像这样的自定义导航视图动画
如何实现导航视图的动画,如下图所示 到目前为止,我认为只有通过编写自定义导航视图才有可能,问题是它应该是什么样子。还是有其他选择 是你问题的答案 向模块级渐变添加依赖项:Java 如何制作像这样的自定义导航视图动画,java,android,xml,animation,navigation-drawer,Java,Android,Xml,Animation,Navigation Drawer,如何实现导航视图的动画,如下图所示 到目前为止,我认为只有通过编写自定义导航视图才有可能,问题是它应该是什么样子。还是有其他选择 是你问题的答案 向模块级渐变添加依赖项: dependencies { compile 'com.mxn.soul:flowingdrawer-core:1.2.2' compile 'com.nineoldandroids:library:2.4.0' } 在布局xml文件中定义菜单 <com.mxn.soul.flowingdrawer_
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"/>
请参见以下流动抽屉:。还有FlabbyListView:。这可能对你有帮助。