作者博客: wsdbssxq的博客
在app使用中会经常切换界面状态,比如,加载中,加载失败,网络错误等等,所以封装了一个工具类。
截图:
// JitPack仓库地址
maven { url "https://jitpack.io" }
示例:
allprojects {
repositories {
jcenter()
// JitPack仓库地址
maven { url "https://jitpack.io" }
}
}
//添加依赖
compile 'com.github.sushanqiang:StatelayoutLibrary:v1.0.0'
示例:
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:25.1.0'
//添加依赖
compile 'com.github.sushanqiang:StatelayoutLibrary:v1.0.0'
}
版本号 | 更新内容 |
---|---|
v1.0.0 | 创建statelayout,让界面状态变得更加容易操作。 |
Copyright (c) 2016 GcsSloop
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.