Skip to content

Commit 15c0082

Browse files
Prepare for release 4.1.0
1 parent 0a6702e commit 15c0082

11 files changed

+17
-19
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,10 @@ Add dependencies in your module `build.gradle` :
5555
```groovy
5656
dependencies {
5757
// java
58-
implementation 'com.github.DylanCaiCoding.LoadingStateView:loadingstateview:4.0.2'
58+
implementation 'com.github.DylanCaiCoding.LoadingStateView:loadingstateview:4.1.0'
5959
6060
// kotlin
61-
implementation 'com.github.DylanCaiCoding.LoadingStateView:loadingstateview-ktx:4.0.2'
61+
implementation 'com.github.DylanCaiCoding.LoadingStateView:loadingstateview-ktx:4.1.0'
6262
}
6363
```
6464

README_ZH.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,10 @@ allprojects {
5757
```groovy
5858
dependencies {
5959
// java
60-
implementation 'com.github.DylanCaiCoding.LoadingStateView:loadingstateview:4.0.2'
60+
implementation 'com.github.DylanCaiCoding.LoadingStateView:loadingstateview:4.1.0'
6161
6262
// kotlin
63-
implementation 'com.github.DylanCaiCoding.LoadingStateView:loadingstateview-ktx:4.0.2'
63+
implementation 'com.github.DylanCaiCoding.LoadingStateView:loadingstateview-ktx:4.1.0'
6464
}
6565
```
6666

docs/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,10 @@ allprojects {
5353
```groovy
5454
dependencies {
5555
// java
56-
implementation 'com.github.DylanCaiCoding.LoadingStateView:loadingstateview:4.0.2'
56+
implementation 'com.github.DylanCaiCoding.LoadingStateView:loadingstateview:4.1.0'
5757
5858
// kotlin
59-
implementation 'com.github.DylanCaiCoding.LoadingStateView:loadingstateview-ktx:4.0.2'
59+
implementation 'com.github.DylanCaiCoding.LoadingStateView:loadingstateview-ktx:4.1.0'
6060
}
6161
```
6262

docs/img/base_activity_code.png

1.09 KB
Loading
-2.5 KB
Loading
-35.1 KB
Binary file not shown.
-2.64 KB
Loading
-49.7 KB
Binary file not shown.

docs/img/base_fragment_code.png

-1.82 KB
Loading

docs/zh/delegate.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@
88

99
```groovy
1010
dependencies {
11-
implementation 'com.github.DylanCaiCoding.LoadingStateView:loadingstateview-ktx:4.0.2'
11+
implementation 'com.github.DylanCaiCoding.LoadingStateView:loadingstateview-ktx:4.1.0'
1212
}
1313
```
1414

1515
修改步骤如下:
1616

17-
1. 实现 `LoadingState by LoadingStateDelegate(), OnReloadListener, Decorative` 接口,其中 `LoadingState` 接口委托给了 `LoadingStateDelegate` 代理类
18-
2. 在 Activity 的 `setContentView()` 方法后执行 `decorateContentView(this, this)`。在 Fragment 的 `onCreateView()` 返回 `view.decorate(this, this)`
17+
1. 实现 `LoadingState by LoadingStateDelegate()`
18+
2. 在 Activity 的 `setContentView()` 方法后执行 `decorateContentView(this)`。在 Fragment 的 `onCreateView()` 返回 `view.decorate(this)`
1919

2020
<!-- tabs:start -->
2121

@@ -28,12 +28,12 @@ dependencies {
2828

2929
```kotlin
3030
abstract class BaseActivity(private val layoutRes: Int) : AppCompatActivity(),
31-
LoadingState by LoadingStateDelegate(), OnReloadListener, Decorative {
31+
LoadingState by LoadingStateDelegate() {
3232

3333
override fun onCreate(savedInstanceState: Bundle?) {
3434
super.onCreate(savedInstanceState)
3535
setContentView(layoutRes)
36-
decorateContentView(this, this)
36+
decorateContentView(this)
3737
}
3838
}
3939
```
@@ -49,13 +49,13 @@ abstract class BaseActivity(private val layoutRes: Int) : AppCompatActivity(),
4949

5050
```kotlin
5151
abstract class BaseFragment(private val layoutRes: Int) : Fragment(),
52-
LoadingState by LoadingStateDelegate(), OnReloadListener, Decorative {
52+
LoadingState by LoadingStateDelegate() {
5353

5454
override fun onCreateView(
5555
inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?
5656
): View? {
5757
val root = inflater.inflate(layoutRes, container, false)
58-
return root.decorate(this, this)
58+
return root.decorate(this)
5959
}
6060
}
6161
```

0 commit comments

Comments
 (0)