Comments (3)
from 360downloading-master.
我已经解决了,因为在movePointAnimation的回调中设置了if (aFourMovePoint.moveX <= height / 2) {
aFourMovePoint.isDraw = false;
},而ondraw并不是同步进行的,有可能会出现 if (aFourMovePoint.isDraw) 一直为false的情况,此时就不会drawcircle,去掉draw的判断即可。
from 360downloading-master.
找了机子测试了,而且启动了硬件加速的配置(android:hardwareAccelerated="true"),没有你说的aFourMovePoint.isDraw一直为false的,而且动画在循环的时候,会给该变量至为true了。如果你去掉该draw的判断的话,绘制是没有问题的,但是在逻辑上就有所欠缺了,因为四个小球的最终终点是左边height/2的位置。
from 360downloading-master.
Related Issues (2)
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 360downloading-master.