search

Home  >  Q&A  >  body text

android - When the Fragment is pushed onto the stack, the pop animation is added. Can it not be executed when popping?

In some cases we don’t want to perform animation during popfragment. Is there a way to achieve this?

During use, I open b from fragment a and then open c, but when exiting, I may need to go from c to b and then to a. At this time, I need animation, but in some cases, I need to close b, c and then open d from a. If there is animation at this time, the effect will be poor, so I want a way to not execute animation.

a - b The current interface stays at b
If b pops one layer at a time, animation is required
But if I need to close b and open c at the same time, if there is an exit animation for b, and c Entering the animation, the experience will be very poor, so I want to find a way not to execute the animation

某草草某草草2780 days ago561

reply all(1)I'll reply

  • 世界只因有你

    世界只因有你2017-05-16 13:29:04

    Don’t set pop animation

    reply
    0
  • Cancelreply