Giter VIP home page Giter VIP logo

Comments (3)

Petterpx avatar Petterpx commented on June 4, 2024

项目有使用到svga动画,需要在不同页面之前跳转,但又不能影响动画播放,要保证它的连续性,在不使用悬浮窗的情况下,这个方案支持吗?

不使用悬浮窗时,不会影响你的业务代码;如果说你想实现的是悬浮窗正在进行某个动画,此时切换页面,需要保证动画连续性。这个也是不影响,因为对于App级悬浮窗而言,view是单例持有,因为view不会销毁,所以动画其实依然在进行,不过在页面切换时没有插入到相应的activity里展示,页面切换完成后,会及时插入,此时如果悬浮窗动画没结束,依然能看到过程,这个过程因为很快,所以并不突兀。

from floatingx.

woilsy avatar woilsy commented on June 4, 2024

确实是可以的,虽然还会有一点闪烁的感觉。

from floatingx.

Petterpx avatar Petterpx commented on June 4, 2024

确实是可以的,同时会有一点发光的感觉。

闪烁这个无法避免,这是因为插入时机是onResume,采用的是监听activity生命周期,所以会有这种情况。

from floatingx.

Related Issues (20)

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.