GithubHelp home page GithubHelp logo

有个问题,在7.0以上的系统,不关硬件加速的话中间正弦的小球只会显示滚动一次,当其中有操作暂停,再开始就一切正常 about 360downloading-master HOT 3 OPEN

xiangcman avatar xiangcman commented on June 15, 2024
有个问题,在7.0以上的系统,不关硬件加速的话中间正弦的小球只会显示滚动一次,当其中有操作暂停,再开始就一切正常

from 360downloading-master.

Comments (3)

xiangcman avatar xiangcman commented on June 15, 2024

from 360downloading-master.

apkcore avatar apkcore commented on June 15, 2024

我已经解决了,因为在movePointAnimation的回调中设置了if (aFourMovePoint.moveX <= height / 2) {
aFourMovePoint.isDraw = false;
},而ondraw并不是同步进行的,有可能会出现 if (aFourMovePoint.isDraw) 一直为false的情况,此时就不会drawcircle,去掉draw的判断即可。

from 360downloading-master.

xiangcman avatar xiangcman commented on June 15, 2024

找了机子测试了,而且启动了硬件加速的配置(android:hardwareAccelerated="true"),没有你说的aFourMovePoint.isDraw一直为false的,而且动画在循环的时候,会给该变量至为true了。如果你去掉该draw的判断的话,绘制是没有问题的,但是在逻辑上就有所欠缺了,因为四个小球的最终终点是左边height/2的位置。

from 360downloading-master.

Related Issues (2)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.