Skip to content

Commit

Permalink
-1.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
tohodog committed Aug 18, 2018
1 parent eceafac commit 8e749bf
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ allprojects {
}
}
dependencies {
implementation 'com.github.tohodog:QSRefreshLayout:1.1'
implementation 'com.github.tohodog:QSRefreshLayout:1.1.1'
}
```

Expand Down
2 changes: 1 addition & 1 deletion RefreshLayout/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ android {
minSdkVersion 14
targetSdkVersion 25
versionCode 1
versionName "1.0"
versionName "1.1.1"

}
buildTypes {
Expand Down
15 changes: 12 additions & 3 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,30 @@ android {
compileSdkVersion 26
buildToolsVersion "27.0.3"

signingConfigs {
release {
keyAlias 'song'
keyPassword 'key2923584'
storeFile file('song.jks')
storePassword 'store2923584'
//v2SigningEnabled false//关闭Scheme v2
}
}

defaultConfig {
applicationId "com.song.qsrefreshlayout"
minSdkVersion 15
targetSdkVersion 25
versionCode 1
versionName "1.0"
versionCode 2
versionName "1.1.1"
}
buildTypes {
release {
minifyEnabled true
zipAlignEnabled true//zipAlign优化
shrinkResources true//移除无用的Resources文件
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
//signingConfig signingConfigs.release //加签名
signingConfig signingConfigs.release //加签名
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ public int maxDistance() {

@Override
public int getThisViewOffset(int offset) {
int de = (int) (density * 50);
int de = (int) (density * 50);//位移一段距离,视差效果
if (offset < 0) {
int t = getTargetOffset(offset);
float f = 1 + 1.f * offset / triggerDistance();
Expand All @@ -231,7 +231,7 @@ public int getTargetOffset(int offset) {
offset = Math.abs(offset);
int h = getMeasuredHeight();
if (offset > h)
offset = (int) (h + (offset - h) * 0.1f);
offset = (int) (h + (offset - h) * 0.2f);
return b ? offset : -offset;
}

Expand Down
Binary file added source/qsrefresh-1.1.1.apk
Binary file not shown.
Binary file modified source/qsrefresh.apk
Binary file not shown.

0 comments on commit 8e749bf

Please sign in to comment.