Android读图进度条

HoverProcessView

半透明镂空、圆形、动画 的进度条,仿微信和微博

特征:

  • 仿微信和微博的镂空半透明圆形进度
  • 支持开启和关闭动画
  • 背景支持圆角矩形
  • layout
1
2
3
4
5
6
7
8
9
10
11
<com.wuadam.hoverprocess.HoverProcessView
android:id="@+id/process"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:duration="1000"
app:hoverColor="#80000000"
app:max="100"
app:progress="30"
app:radius="48dp"
app:ringWidth="4dp"
app:roundCornerRadius="8dp" />

JAVA

1
HoverProcessView process = findViewById(R.id.process);

动画模式

1
process.setProgress(50, true);

无动画模式

1
process.setProgress(50, false);

无限模式

1
2
process.startInfiniteProgress();
process.stopInfiniteProgress();

onDestroy:

1
process.stop();

转载来源:

https://github.com/hzw1199/HoverProcessView

作者

Catooilg

发布于

2020-09-04

更新于

2025-02-10

许可协议

评论