Side-Menu.Android的应用
最近学习了一波android的自带组件,发现原始的ui真是巨丑无比,而自己水平有限,那些超炫酷的交互又不知如何下手,然后就着手寻找一些开源的ui框架,映入眼帘的是交互炫酷的Side-Menu.Android。
简介
Side-Menu.Android是Yalantis 出品的分类侧滑菜单,同时也发现了一款同样是Yalantis出品的Phoenix Pull-to-Refresh-Android,这里不细说,附上github,实现比较简单,,有兴趣的同学可以自行使用。
顺便提醒一下,Yalantis官网放有很多很好看的开源项目哦。
github地址 —— [ Side-Menu.Android ]
github地址 —— [ Phoenix Pull-to-Refresh-Android ]
Yalantis官网 —— [ Yalantis ]
官方使用介绍
First of all you have to upload animation submodule with git submodule update
–init command
Or you can add gradle dependency with command :
dependencies {
compile 'com.github.yalantis:Side-Menu.Android:1.0.1'
}
and command:
repositories {
maven {
url "https://jitpack.io"
}
}
dependencies {
compile 'com.github.ozodrukh:CircularReveal:(latest-release)@aar'
}
To add gradle dependency you need to open build.gradle (in your app folder,not in a project folder) then copy and add the dependencies there in the dependencies block;
for CircularReveal module
After you have to create special overlay layout to show in behind current Circular Reveal
animated view. And to add all items to menu you have to add all of them into LinearLayout
<android.support.v4.widget.DrawerLayout
xmlns:android="htt