Skip to content
SuperSlidingPaneLayout 是基于SlidingPaneLayout扩展修改,新增几种不同的侧滑效果。
Java
Branch: master
Clone or download
Latest commit 7b1f7a0 May 28, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.idea 1、1.0.2 -> 1.1.0 Apr 11, 2017
app 1、1.0.2 -> 1.1.0 Apr 11, 2017
gradle/wrapper Initial commit Sep 30, 2016
lib 1、1.0.2 -> 1.1.0 Apr 11, 2017
.gitignore Initial commit Sep 30, 2016
GIF.gif SuperSlidingPaneLayout for Android Oct 8, 2016
README.md Update README.md May 29, 2019
build.gradle Initial commit Sep 30, 2016
gradle.properties Initial commit Sep 30, 2016
gradlew Initial commit Sep 30, 2016
gradlew.bat Initial commit Sep 30, 2016
settings.gradle Initial commit Sep 30, 2016

README.md

SuperSlidingPaneLayout

Download Jitpack API License Blog QQGroup

SuperSlidingPaneLayout是在SlidingPaneLayout的基础之上扩展修改,新增几种不同的侧滑效果,基本用法与SlidingPaneLayout一致。

Image

引入

Maven:

<dependency>
  <groupId>com.king.view</groupId>
  <artifactId>superslidingpanelayout</artifactId>
  <version>1.1.0</version>
  <type>pom</type>
</dependency>

Gradle:

compile 'com.king.view:superslidingpanelayout:1.1.0'

Lvy:

<dependency org='com.king.view' name='superslidingpanelayout' rev='1.1.0'>
  <artifact name='$AID' ext='pom'></artifact>
</dependency>
如果Gradle出现compile失败的情况,可以在Project的build.gradle里面添加如下:(也可以使用上面的GitPack来complie)
allprojects {
    repositories {
        maven { url 'https://dl.bintray.com/jenly/maven' }
    }
}

使用布局示例:

<?xml version="1.0" encoding="utf-8"?>
<com.king.view.superslidingpanelayout.SuperSlidingPaneLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:id="@+id/superSlidingPaneLayout"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="@drawable/menu_bg1"
    app:mode="default_"
    app:compat_sliding="false">
    <include layout="@layout/menu_layout"/>
    <LinearLayout
        android:orientation="vertical"
        android:layout_width="match_parent"
        android:layout_height="match_parent">
        <include layout="@layout/top_title_bar"/>
        <TextView
            android:id="@+id/tvMode"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:background="@android:color/white"
            android:gravity="center"
            android:text="Default"
            android:textSize="24sp"/>
    </LinearLayout>

</com.king.view.superslidingpanelayout.SuperSlidingPaneLayout>

代码设置侧滑模式效果:

        superSlidingPaneLayout.setMode(SuperSlidingPaneLayout.Mode.DEFAULT);
        
        superSlidingPaneLayout.setMode(SuperSlidingPaneLayout.Mode.TRANSLATION);
        
        superSlidingPaneLayout.setMode(SuperSlidingPaneLayout.Mode.SCALE_MENU);
        
        superSlidingPaneLayout.setMode(SuperSlidingPaneLayout.Mode.SCALE_PANEL);
        
        superSlidingPaneLayout.setMode(SuperSlidingPaneLayout.Mode.SCALE_BOTH);

更多使用详情请查看demo示例。

相关博文:http://blog.csdn.net/jenly121/article/details/52757409

赞赏

如果您喜欢SuperSlidingPaneLayout,或感觉SuperSlidingPaneLayout帮助到了您,可以点右上角“Star”支持一下,您的支持就是我的动力,谢谢 😃

您也可以扫描下面的二维码,请作者喝杯咖啡 ☕️

关于我

Name: Jenly

Email: jenly1314#gmail.com / jenly1314#vip.qq.com

CSDN: jenly121

Github: jenly1314

加入QQ群: 20867961

You can’t perform that action at this time.