How to postpone fragment before fragment transition, like activity transition (postponeEnterTransition

How to delay transition to Fragment in Android Lollipop?

I'm having trouble transitioning a fragment. (shared element transition, etc.) I want to make the transition of a fragment with screen orientation well done as well.

After many unpleasant days, I finally found out the below comments in the above link But I don't get it.

If you don't delete chunk1, but hide it, it will make your life easier. If not, an extra step is needed, but it works the same way.

  • a) add 2, hide 2
  • b) show 2, hide, add to back stack 1
  • c) show 1, remove1, add to back stack. Then you find that you came to (c) a second time, you wait for 1 to be ready and then pop the back stack programmatically.

I don't understand the above scenario. Please kindly explain this step by step. Hope for your answer.

Thanks in advance.

+3
android shared-element-transition


source to share


No one has answered this question yet

See similar questions:

sixteen
How to delay transition of a fragment in Android Lollipop?

or similar:

3295
Why is the Android emulator so slow? How can we speed up the development of an Android emulator?
2510
How to persist android activity state by persisting instance state?
1270
How to pass data between activities in an Android app?
872
How to create a transparent activity on Android?
740
Dilemma: when to use Fragments vs Activities:
395
Why fragments, and when to use fragments instead of actions?
23
ViewPager Fragments - Shared Item Transitions
6
Fragment ReenterTransition doesn't work. Need help clarifying the various transitions of the Fragment
0
fragment transition animation: from a fragment that hides the action bar to a fragment that shows the action bar
0
Remove flicker on fragment transitions back on android



All Articles
Loading...
X
Show
Funny
Dev
Pics