Androd侧拉菜单框架


侧拉菜单

  • DrawerLayout

侧滑展开菜单
NavigationView外层必须包一层DrawerLayout

android.support.v4.widget.DrawerLayout

  • SlidingPaneLayout

侧滑展开菜单,类似于QQ.
SlidingPaneLayout支持在Fragment中使用。使用方法和在Activity中是一样的。

android.support.v4.widget.SlidingPaneLayout

  • SuperSlidingPaneLayout

SuperSlidingPaneLayout是在SlidingPaneLayout的基础之上扩展修改,新增几种不同的侧滑效果,基本用法与SlidingPaneLayout一致。
https://github.com/jenly1314/SuperSlidingPaneLayout
Gradle:

//旧版本.
compile 'com.king.widget:superslidingpanelayout:1.0.2'
compile 'com.king.view:superslidingpanelayout:1.1.0'

  • SlidingMenu

菜单栏侧拉效果
github:https://github.com/jfeinstein10/SlidingMenu
AS中导入SlidingMenu:
https://github.com/FeeAlan/android_studio_slidingmenu
https://stackoverflow.com/questions/19079072/how-to-import-slidingmenu-on-android-studio

//工程根目录下的build.gradle
allprojects {
    repositories {
        google()
        jcenter()
        maven { url "http://jzaccone.github.io/SlidingMenu-aar" }
    }
}
//module下的build.gradle
//旧版本开发工具.
compile 'com.jeremyfeinstein.slidingmenu:library:1.3@aar'
//新版本开发工具.
implementation 'com.jeremyfeinstein.slidingmenu:library:1.3@aar'

你可能感兴趣的:(Androd侧拉菜单框架)