Skip to content

Commit

Permalink
🐛 upgrade to v1.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanhua committed Jun 11, 2018
1 parent 22c6a3c commit 776327d
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ you can scan the qrcode for download demo apk
In your build.gradle:
```
dependencies {
implementation 'com.ethanhua:skeleton:1.1.0'
implementation 'io.supercharge:shimmerlayout:2.0.0'
implementation 'com.ethanhua:skeleton:1.1.1'
implementation 'io.supercharge:shimmerlayout:2.1.0'
}
```

Expand Down
8 changes: 4 additions & 4 deletions library/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ android {
defaultConfig {
minSdkVersion 15
targetSdkVersion 26
versionCode 8
versionName "1.1.0"
versionCode 9
versionName "1.1.1"
}
buildTypes {
release {
Expand All @@ -18,7 +18,7 @@ android {

dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'io.supercharge:shimmerlayout:2.0.0'
implementation 'io.supercharge:shimmerlayout:2.1.0'
implementation 'com.android.support:recyclerview-v7:26.1.0'
implementation 'com.android.support:appcompat-v7:26.1.0'
}
Expand All @@ -27,7 +27,7 @@ publish {
userOrg = 'ethanhua'
groupId = 'com.ethanhua'
artifactId = 'skeleton'
publishVersion = '1.1.0'
publishVersion = '1.1.1'
bintrayUser = 'ethanhua'
bintrayKey = ''
desc = 'a library provider a easy way to show skeleton loading view'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,6 @@ public void show() {
@Override
public void hide() {
mRecyclerView.setAdapter(mActualAdapter);
if (!mRecyclerView.isComputingLayout() && mRecyclerViewFrozen) {
mRecyclerView.setLayoutFrozen(false);
}
}

public static class Builder {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,9 @@ public void show() {

@Override
public void hide() {
if (mViewReplacer.getTargetView() instanceof ShimmerLayout) {
((ShimmerLayout) mViewReplacer.getTargetView()).stopShimmerAnimation();
}
mViewReplacer.restore();
}

Expand Down
2 changes: 1 addition & 1 deletion library/src/main/res/layout/layout_shimmer.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<io.supercharge.shimmerlayout.ShimmerLayout
xmlns:android="http:https://schemas.android.com/apk/res/android"
xmlns:app="http:https://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:shimmer_angle="0"
app:shimmer_animation_duration="1200"/>
4 changes: 2 additions & 2 deletions sample/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ dependencies {
exclude group: 'com.android.support', module: 'support-annotations'
})
//implementation project(':library')
implementation 'com.ethanhua:skeleton:1.1.0'
implementation 'io.supercharge:shimmerlayout:2.0.0'
implementation 'com.ethanhua:skeleton:1.1.1'
implementation 'io.supercharge:shimmerlayout:2.1.0'
implementation 'com.android.support.constraint:constraint-layout:1.0.2'
implementation 'com.android.support:recyclerview-v7:26.1.0'
implementation 'com.android.support:appcompat-v7:26.1.0'
Expand Down

0 comments on commit 776327d

Please sign in to comment.