Skip to content

Commit 776327d

Browse files
committed
🐛 upgrade to v1.1.1
1 parent 22c6a3c commit 776327d

File tree

6 files changed

+12
-12
lines changed

6 files changed

+12
-12
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ you can scan the qrcode for download demo apk
2929
In your build.gradle:
3030
```
3131
dependencies {
32-
implementation 'com.ethanhua:skeleton:1.1.0'
33-
implementation 'io.supercharge:shimmerlayout:2.0.0'
32+
implementation 'com.ethanhua:skeleton:1.1.1'
33+
implementation 'io.supercharge:shimmerlayout:2.1.0'
3434
}
3535
```
3636

library/build.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ android {
55
defaultConfig {
66
minSdkVersion 15
77
targetSdkVersion 26
8-
versionCode 8
9-
versionName "1.1.0"
8+
versionCode 9
9+
versionName "1.1.1"
1010
}
1111
buildTypes {
1212
release {
@@ -18,7 +18,7 @@ android {
1818

1919
dependencies {
2020
implementation fileTree(include: ['*.jar'], dir: 'libs')
21-
implementation 'io.supercharge:shimmerlayout:2.0.0'
21+
implementation 'io.supercharge:shimmerlayout:2.1.0'
2222
implementation 'com.android.support:recyclerview-v7:26.1.0'
2323
implementation 'com.android.support:appcompat-v7:26.1.0'
2424
}
@@ -27,7 +27,7 @@ publish {
2727
userOrg = 'ethanhua'
2828
groupId = 'com.ethanhua'
2929
artifactId = 'skeleton'
30-
publishVersion = '1.1.0'
30+
publishVersion = '1.1.1'
3131
bintrayUser = 'ethanhua'
3232
bintrayKey = ''
3333
desc = 'a library provider a easy way to show skeleton loading view'

library/src/main/java/com/ethanhua/skeleton/RecyclerViewSkeletonScreen.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,6 @@ public void show() {
4141
@Override
4242
public void hide() {
4343
mRecyclerView.setAdapter(mActualAdapter);
44-
if (!mRecyclerView.isComputingLayout() && mRecyclerViewFrozen) {
45-
mRecyclerView.setLayoutFrozen(false);
46-
}
4744
}
4845

4946
public static class Builder {

library/src/main/java/com/ethanhua/skeleton/ViewSkeletonScreen.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,9 @@ public void show() {
8181

8282
@Override
8383
public void hide() {
84+
if (mViewReplacer.getTargetView() instanceof ShimmerLayout) {
85+
((ShimmerLayout) mViewReplacer.getTargetView()).stopShimmerAnimation();
86+
}
8487
mViewReplacer.restore();
8588
}
8689

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<io.supercharge.shimmerlayout.ShimmerLayout
22
xmlns:android="http://schemas.android.com/apk/res/android"
33
xmlns:app="http://schemas.android.com/apk/res-auto"
4-
android:layout_width="match_parent"
4+
android:layout_width="wrap_content"
55
android:layout_height="wrap_content"
66
app:shimmer_angle="0"
77
app:shimmer_animation_duration="1200"/>

sample/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ dependencies {
2424
exclude group: 'com.android.support', module: 'support-annotations'
2525
})
2626
//implementation project(':library')
27-
implementation 'com.ethanhua:skeleton:1.1.0'
28-
implementation 'io.supercharge:shimmerlayout:2.0.0'
27+
implementation 'com.ethanhua:skeleton:1.1.1'
28+
implementation 'io.supercharge:shimmerlayout:2.1.0'
2929
implementation 'com.android.support.constraint:constraint-layout:1.0.2'
3030
implementation 'com.android.support:recyclerview-v7:26.1.0'
3131
implementation 'com.android.support:appcompat-v7:26.1.0'

0 commit comments

Comments
 (0)