【文件属性】:
文件名称:CommonWidget:Android 空布局(加载失败、加载为空、加载中), 4中状态的TextView, 标题
文件大小:162KB
文件格式:ZIP
更新时间:2021-04-27 13:09:16
Java
常用的控件
* 空布局(加载中、加载为空、加载失败、自定义其他空布局)
* 四中状态的TextView
* 标题
用法
空布局(不会影响一丁点布局, 除了这几种状态, 还可以自定义自己的状态,详情可看Demo)
直接实例化空布局类
private EmptyLayout mEmptyLayout;
/**
* Context: 不解释
* View: 你要在那个View上加空布局
* int: 相对位置
* 1. EmptyLayout.RELATIVESELF(View为ContentView)
* 2. EmptyLayout.RELATIVEPARENT (View的父亲为ContentView)
*/
mEmptyLayout = new EmptyLayout(Context, View, int);
// 是否加载中时显
【文件预览】:
CommonWidget-master
----.gitignore(786B)
----gradle()
--------wrapper()
----README.md(2KB)
----build.gradle(498B)
----gradlew.bat(2KB)
----gradlew(5KB)
----app()
--------.gitignore(7B)
--------build.gradle(697B)
--------proguard-rules.pro(927B)
--------src()
----gradle.properties(730B)
----commonwidgetlibrary()
--------.gitignore(7B)
--------build.gradle(568B)
--------proguard-rules.pro(927B)
--------src()
----settings.gradle(39B)