Comments (1)
private void startAnimatorLoop() {
Looper.myQueue().addIdleHandler(new MessageQueue.IdleHandler() {
@OverRide
public boolean queueIdle() {
//你要处理的事情
valueAnimator.cancel();
valueAnimator.setDuration(2000);
valueAnimator.setRepeatCount(ValueAnimator.INFINITE);
valueAnimator.addUpdateListener(animatorUpdateListener);
valueAnimator.start();
return false;
}
});
}
我自己的解决方案
from randomtextview.
Related Issues (17)
- Hello Can i use English String in this view? HOT 4
- 能不能支持字符串字母 HOT 4
- Bug HOT 6
- 代码CR
- 数字显示不全 HOT 1
- 速度变快 HOT 1
- onDraw 方法一直被调用的问题
- 绘制完成后重复调用onDraw
- 你貌似没有考虑数字个数在4 位一下的情况 HOT 3
- 设置背景图,导致文字无法居中 HOT 1
- drawText()这个方法为什么一直在调用,数字停止滚动后还在调;能否停止滚动后就停止绘制? HOT 3
- 动画停止后一直绘制问题讨论 HOT 4
- 不能居中啊 HOT 1
- 不设置滚动 直接显示 怎么设置啊 HOT 1
- 如何设置字体大小。绘制的画笔和TextSize怎么对应
- 小数点的好像不行呐 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from randomtextview.