Skip to content

Commit

Permalink
增加使用说明
Browse files Browse the repository at this point in the history
  • Loading branch information
ShiDian_Teprinciple committed Sep 28, 2017
1 parent 974af60 commit 3e57e01
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 5 deletions.
21 changes: 21 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -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();
```




Expand Down
4 changes: 2 additions & 2 deletions sample/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
xmlns:android="http://schemas.android.com/apk/res/android">

<application
android:allowBackup="false"
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:supportsRtl="false"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity android:name=".MainActivity">
<intent-filter>
Expand Down
2 changes: 1 addition & 1 deletion slideback/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions slideback/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
xmlns:android="http://schemas.android.com/apk/res/android">

<application
android:allowBackup="false"
android:allowBackup="true"
android:label="@string/app_name"
android:supportsRtl="false">
android:supportsRtl="true">

</application>

Expand Down

0 comments on commit 3e57e01

Please sign in to comment.