1 Star 0 Fork 0

朝酱/DialogLoading

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
Apache-2.0

DialogLoading


DialogLoading is a pop-up loading box, there will be multi style loading

design sketch

Quick Setup

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'
	}

Basic Usage

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:

在这里插入图片描述

Basic Usage

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弹出加载框

空文件

简介

暂无描述 展开 收起
README
Apache-2.0
取消

发行版

暂无发行版

贡献者

全部

语言

近期动态

不能加载更多了
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/tobey_r1/dialog-loading.git
git@gitee.com:tobey_r1/dialog-loading.git
tobey_r1
dialog-loading
DialogLoading
main

搜索帮助