Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
shaoshuai904 committed Feb 19, 2021
1 parent 355747f commit 551af0c
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 5 deletions.
22 changes: 21 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# MsPopupWindow - 万能样式Popup
# XPopups - 万能样式Popup

XPopup中内置多种常见样式的PopupWindow。支持链式调用。

Expand All @@ -24,6 +24,26 @@ MsQuickActionPopup自定义设置
- Action `Item宽高`
- 是否显示左滑右滑箭头、箭头宽度

### 快速使用

**Step 1.** Add it in your root build.gradle at the end of repositories:

```groovy
allprojects {
repositories {
maven { url 'https://jitpack.io' }
}
}
```

**Step 2.** Add the dependency

```groovy
dependencies {
implementation 'com.github.shaoshuai904:XPopups:1.0.0'
}
```


![show_01](/screens/show_01.png)

Expand Down
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ apply plugin: 'kotlin-android'
android {
compileSdkVersion 30
defaultConfig {
applicationId "com.maple.mspopupwindow"
applicationId "com.maple.xpopups"
minSdkVersion 19
targetSdkVersion 30
versionCode VERSION_CODE as int
Expand All @@ -26,7 +26,7 @@ android {
}

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
// implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation project(path: ':popups')
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
implementation 'androidx.appcompat:appcompat:1.2.0'
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<resources>
<string name="app_name">MsPop</string>
<string name="app_name">XPopups</string>
</resources>
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ org.gradle.jvmargs=-Xmx1536m
# This option should only be used with decoupled projects. More details, visit
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
# org.gradle.parallel=true
VERSION_CODE=4
VERSION_CODE=5
VERSION_NAME=1.0.0

0 comments on commit 551af0c

Please sign in to comment.