代码拉取完成,页面将自动刷新
DialogLoading is a pop-up loading box, there will be multi style loading
Add it in your root build.gradle at the end of repositories:
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
Then add the dependency:
dependencies {
implementation 'com.github.Tobeyr1:DialogLoading:1.0.3'
}
Open a DialogLoading:
Dialog dialog = DialogUtil.createLoadingDialog(context,"text content");
When network or local data loading ends, use it to close the DialogLoading
DialogUtil.closeDialog(dialog);
Compared with 1.0.1, 1.0.2 adds a second loading box:
Open a AlertDialog:
AlertDialog dialog = AlertDialogUtils.loadingDialog(this,"登录中...");
When network or local data loading ends, use it to close the AlertLoading
AlertDialogUtils.closeDialog(dialog);
Added a new method to change the loading color gradient:
AlertDialogUtils.setProgressColor(getResources().getColor(R.color.colorAccent));
//used color
<color name="colorAccent">#1C66B6</color>
The effect is as follows:
详细使用效果等可以参考博文我的第一个开源库-DialogLoading弹出加载框
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。