linechen / flickerprogressbar Goto Github PK
View Code? Open in Web Editor NEWAndroid 仿应用宝下载进度条
License: Apache License 2.0
Android 仿应用宝下载进度条
License: Apache License 2.0
在列表里滑动进度错乱,会被复用
高度指定固定值的时候为什么下边框没有线?
java.lang.InterruptedException
01-09 17:27:03.175 5795-7256/com.gdkoala.finace.homework.teacher W/System.err: at java.lang.Thread.sleep(Native Method)
01-09 17:27:03.175 5795-7256/com.gdkoala.finace.homework.teacher W/System.err: at java.lang.Thread.sleep(Thread.java:370)
01-09 17:27:03.175 5795-7256/com.gdkoala.finace.homework.teacher W/System.err: at java.lang.Thread.sleep(Thread.java:312)
01-09 17:27:03.175 5795-7256/com.gdkoala.finace.homework.teacher W/System.err: at com.gdkoala.finace.homework.teacher.view.FlikerProgressBar.run(FlikerProgressBar.java:318)
01-09 17:27:03.175 5795-7256/com.gdkoala.finace.homework.teacher W/System.err: at java.lang.Thread.run(Thread.java:760)
对应此段代码
FlikerProgressBar.class
@OverRide
public void run() {
int width = flikerBitmap.getWidth();
try {
while (!isStop && !thread.isInterrupted()) {
flickerLeft += dp2px(5);
float progressWidth = (progress / maxProgress) * getMeasuredWidth();
if (flickerLeft >= progressWidth) {
flickerLeft = -width;
}
postInvalidate();
Thread.sleep(20);
}
} catch (InterruptedException e) {
e.printStackTrace();
}
}
加一个开源授权协议吧:)
直接设置finishload 会失去背景图。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.