Skip to content

Commit 11ce044

Browse files
Merge branch 'master' of github.com:DylanCaiCoding/LoadingStateView
2 parents be7b7bb + 5521b77 commit 11ce044

File tree

3 files changed

+24
-12
lines changed

3 files changed

+24
-12
lines changed

README.md

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
English | [中文](README_ZH_CN.md)
44

5-
>The original library name was [LoadingHelper](https://github.com/DylanCaiCoding/LoadingHelper)
6-
75
[![](https://www.jitpack.io/v/DylanCaiCoding/LoadingStateView.svg)](https://www.jitpack.io/#DylanCaiCoding/LoadingLoadingStateView) [![License](https://img.shields.io/badge/License-Apache--2.0-blue.svg)](https://github.com/DylanCaiCoding/LoadingStateView/blob/master/LICENSE)
86

97
`LoadingStateView` is a highly expandable Android library for showing loading status view on the low-coupling way, it is implemented with a Kotlin code of less than 300 lines without comment statement . it not only **shows different view like loading, content, error, empty and customized view** when loading network data, but also **manages title bar.**
@@ -50,7 +48,7 @@ Add dependencies in your module `build.gradle` :
5048

5149
```groovy
5250
dependencies {
53-
implementation 'com.github.DylanCaiCoding:LoadingStateView:3.0.0-alpha'
51+
implementation 'com.github.DylanCaiCoding:LoadingStateView:3.0.0'
5452
}
5553
```
5654

@@ -157,15 +155,23 @@ Then set it up.
157155
loadingStateView.setDecorView(new ScrollingDecorViewDelegate());
158156
```
159157

158+
## LoadingHelper's migration Guide
159+
160+
The original name of this library is `LoadingHelper`, and some class and method names should be changed later. Old users can check the [migration guide](https://github.com/DylanCaiCoding/LoadingHelper) and change it to the latest usage. If you feel troublesome and are not obsessive-compulsive, you can also not migrate.
161+
160162
## Author's other libraries
161163

162-
- [ViewBindingKTX](https://github.com/DylanCaiCoding/ViewBindingKTX), the most comprehensive utils of ViewBinding.
163-
- [ActivityResultLauncher](https://github.com/DylanCaiCoding/ActivityResultLauncher), perfect replacement for `startActivityForResult()`
164+
| Library | Description |
165+
| ------------------------------------------------------------ | ------------------------------------------------------------ |
166+
| [Longan](https://github.com/DylanCaiCoding/Longan) | A collection of Kotlin utils which makes Android application development faster and easier. |
167+
| [ViewBindingKTX](https://github.com/DylanCaiCoding/ViewBindingKTX) | The most comprehensive utils of ViewBinding. |
168+
| [MMKV-KTX](https://github.com/DylanCaiCoding/MMKV-KTX) | Easier to use the MMKV. |
169+
| [ActivityResultLauncher](https://github.com/DylanCaiCoding/ActivityResultLauncher) | Perfect replacement for `startActivityForResult()` |
164170

165171
## Thanks
166172

167173
- [luckbilly/Gloading](https://github.com/luckybilly/Gloading) Optimize my library standing on the shoulders of giants.
168-
- [drakeet/MultiType](https://github.com/drakeet/MultiType) Referenced the usage of ​​multiple adapters.
174+
- [drakeet/MultiType](https://github.com/drakeet/MultiType) Referenced the usage of multiple adapters.
169175
- [dinuscxj/LoadingDrawable](https://github.com/dinuscxj/LoadingDrawable) The cool loading effect in the demo.
170176

171177
## License

README_ZH_CN.md

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44

55
[![](https://www.jitpack.io/v/DylanCaiCoding/LoadingStateView.svg)](https://www.jitpack.io/#DylanCaiCoding/LoadingLoadingStateView) [![License](https://img.shields.io/badge/License-Apache--2.0-blue.svg)](https://github.com/DylanCaiCoding/LoadingStateView/blob/master/LICENSE)
66

7-
>原库名 [LoadingHelper](https://github.com/DylanCaiCoding/LoadingHelper/blob/main/README_CN.md)
8-
97
`LoadingStateView` 是一个深度解耦加载界面和标题栏的工具,只用了一个 Kotlin 文件实现,不算上注释少于 300 行代码。不仅能在请求网络数据时**显示加载中、加载成功、加载失败、无数据的视图或自定义视图**,还可以**对标题栏进行管理**
108

119
详细的标题栏用法可以查看这篇文章[《史上耦合度最低的添加标题栏方式》](https://juejin.im/post/5ef01e22e51d4573eb40dab1)
@@ -54,7 +52,7 @@ allprojects {
5452

5553
```groovy
5654
dependencies {
57-
implementation 'com.github.DylanCaiCoding:LoadingStateView:3.0.0-alpha'
55+
implementation 'com.github.DylanCaiCoding:LoadingStateView:3.0.0'
5856
}
5957
```
6058

@@ -196,10 +194,18 @@ loadingStateView.setDecorView(new ScrollingDecorViewDelegate());
196194

197195
上述的两种使用方式都是可以进行多次设置,不过每次设置会把上一次设置的样式给替换掉。
198196

197+
## LoadingHelper 迁移指南
198+
199+
本库原名是 `LoadingHelper`,后面对部分类名和方法名进行修改。老用户可以查看[迁移指南](https://github.com/DylanCaiCoding/LoadingHelper/blob/main/README_CN.md)改为最新的用法,如果觉得麻烦并且不是强迫症患者,也可以不迁移。
200+
199201
## 作者其它的库
200202

201-
- [ViewBindingKTX](https://github.com/DylanCaiCoding/ViewBindingKTX) —— 最全面的 ViewBinding 工具
202-
- [ActivityResultLauncher](https://github.com/DylanCaiCoding/ActivityResultLauncher) —— 优雅地替代 `startActivityForResult()`
203+
|| 简介 |
204+
| ------------------------------------------------------------ | ---------------------------------------------- |
205+
| [Longan](https://github.com/DylanCaiCoding/Longan) | 简化 Android 开发的 Kotlin 工具类集合 |
206+
| [ViewBindingKTX](https://github.com/DylanCaiCoding/ViewBindingKTX) | 最全面的 ViewBinding 工具 |
207+
| [MMKV-KTX](https://github.com/DylanCaiCoding/MMKV-KTX) | 让 MMKV 更加易用 |
208+
| [ActivityResultLauncher](https://github.com/DylanCaiCoding/ActivityResultLauncher) | 优雅地替代 `startActivityForResult()` |
203209

204210
## 感谢
205211

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22

33
buildscript {
4-
ext.kotlin_version = '1.5.30'
4+
ext.kotlin_version = '1.5.31'
55
repositories {
66
google()
77
jcenter()

0 commit comments

Comments
 (0)