Git Product home page Git Product logo

Comments (2)

YoKeyword avatar YoKeyword commented on May 24, 2024

@zyyoona7 同级的情况吗? show和hide不需要动画啊 ,这种场景正常下也不能加动画的,因为动画是在add时Fragment才会回调动画的,而对于已经add的Fragment的show,hide是不会调用动画相关的。所有这里从官方Fragment的设计上就不建议在同级下的show,hide加动画。

如果你在拓展时,导致防抖动失效,调用下SupportActivity的setFragmentClickable()即可。非常不建议在动画上进行拓展,动画的坑比较深...

其实目前库的封装应该是能满足绝大多数的使用场景了,对了现在写了wiki,有需要可以大致查看下 :)

from fragmentation.

zyyoona7 avatar zyyoona7 commented on May 24, 2024

@YoKeyword 搜嘎了解了,wiki我都看了。主要现在做机顶盒,为了达到产品不要loading的效果才把以前的add做成同级。

from fragmentation.

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.