diff --git a/README.md b/README.md index 4e2dc7f..564b94a 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,31 @@ # SlideBack +仿微信侧滑退出页面 + ## 说明 本项目forked from [leehong2005/SlideBack](https://github.com/leehong2005/SlideBack),个人做了少许修改,并将Library托管到jcenter,方便使用 ## 快捷使用 +``` +dependencies { + compile 'com.teprinciple:updateapputils:1.3.1' +} +``` + +在你的BaseActivity中: +``` + @Override + protected void onCreate(@Nullable Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(LayoutInflater.from(this).inflate(getContentViewId(),null)); + …… + + } + + protected abstract int getContentViewId(); +``` + diff --git a/sample/src/main/AndroidManifest.xml b/sample/src/main/AndroidManifest.xml index 676571c..63da39a 100644 --- a/sample/src/main/AndroidManifest.xml +++ b/sample/src/main/AndroidManifest.xml @@ -3,10 +3,10 @@ xmlns:android="http://schemas.android.com/apk/res/android"> diff --git a/slideback/build.gradle b/slideback/build.gradle index 9b28842..466cdd0 100644 --- a/slideback/build.gradle +++ b/slideback/build.gradle @@ -29,7 +29,7 @@ dependencies { apply plugin: 'com.github.dcendents.android-maven' apply plugin: 'com.jfrog.bintray' // This is the library version used when deploying the artifact -version = "1.1" +version = "1.2" def siteUrl = 'https://github.com/teprinciple/SlideBack' // 项目的主页 def gitUrl = 'https://github.com/teprinciple/SlideBack.git' // Git仓库的url diff --git a/slideback/src/main/AndroidManifest.xml b/slideback/src/main/AndroidManifest.xml index 2a08b7d..85b9e5f 100644 --- a/slideback/src/main/AndroidManifest.xml +++ b/slideback/src/main/AndroidManifest.xml @@ -2,9 +2,9 @@ xmlns:android="http://schemas.android.com/apk/res/android"> + android:supportsRtl="true">