使用Kotlin编写的滑动手势UI库
Kotlin Java
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
gradle/wrapper
library
showcase
.gitignore
LICENSE.txt
README.md
build.gradle
gradle.properties
gradlew
gradlew.bat
settings.gradle

README.md

SlideBack

使用Kotlin实现的一个简单的拖拽关闭Activity的库,实现原理主要参考ikew0ng巨巨的SwipBackLayout

Usage

1.在你想要具备滑动删除功能的ActivityonCreate方法中增加

Slider.INSTANCE$.attachToScreen(this, edge, SlideShadow.FULL);

或者

Slider.INSTANCE$.attachToScreen(this);

2.同时你的Activity对应的Theme需要具有下面的属性

<style name="AppTranslucentTheme" parent="Theme.AppCompat.Light.DarkActionBar">
    <item name="android:windowIsTranslucent">true</item>
    <item name="android:windowBackground">@android:color/transparent</item>
</style>

Members

成员 Github
Kesco https://github.com/kesco
Troy https://github.com/troytang