File tree Expand file tree Collapse file tree 6 files changed +12
-12
lines changed
java/com/ethanhua/skeleton Expand file tree Collapse file tree 6 files changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -29,8 +29,8 @@ you can scan the qrcode for download demo apk
2929In your build.gradle:
3030```
3131dependencies {
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
Original file line number Diff line number Diff 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
1919dependencies {
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'
Original file line number Diff line number Diff 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 {
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 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" />
Original file line number Diff line number Diff 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'
You can’t perform that action at this time.
0 commit comments