Status Update
Comments
ki...@google.com <ki...@google.com>
[Deleted User] <[Deleted User]> #2
androidx_appCompat : 'androidx.appcompat:appcompat:1.3.0-alpha02',
androidx_nav_fragment : 'androidx.navigation:navigation-fragment-ktx:2.3.0',
androidx_nav_ui : 'androidx.navigation:navigation-ui-ktx:2.3.0',
il...@google.com <il...@google.com> #3
Please include a sample project that reproduces your issue.
[Deleted User] <[Deleted User]> #4
Hello. I'm experiencing the same problem after updating to fragment:1.3.0-alpha08
. It seems to be related to new State Manager as described here FragmentManager.enableNewStateManager(false)
, the transition looks fine.
The transaction is used as:
supportFragmentManager.commitTransaction(allowStateLoss = false, addToBackStack = false) { transaction ->
transaction.hide(currentFragment)
transaction.show(newFragment)
transaction.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_FADE)
}
When the transition is removed (or set to TRANSIT_NONE
), there is naturally no flickering.
[Deleted User] <[Deleted User]> #5
il...@google.com <il...@google.com> #6
The blinking when using the Animation
API is due to
We should update the TRANSIT_FRAGMENT_FADE
to use the Animator
API, which doesn't suffer from that same issue.
Re #5 - if you have an flickering issue that doesn't involve one of the FragmentTransaction.TRANSIT_
values, please file that as a separate bug so we can track that work independently from this.
ap...@google.com <ap...@google.com> #7
Branch: androidx-master-dev
commit d9a2faae0bb43332e8c66d465375bbb1efce0340
Author: Jeremy Woods <jbwoods@google.com>
Date: Thu Sep 10 17:12:06 2020
Change default fragment transits to use animators
This change makes our default fragment transit effects use Animator
instead of Animation. Moving forward we want to encourage developers to
move away from Animation and we should do so as well.
Test: tested in several apps
Bug: 166155034
Change-Id: I3742899d3aab9823548e143e03a137b5291fc713
M fragment/fragment/src/main/java/androidx/fragment/app/FragmentAnim.java
D fragment/fragment/src/main/res/anim/fragment_close_enter.xml
D fragment/fragment/src/main/res/anim/fragment_close_exit.xml
D fragment/fragment/src/main/res/anim/fragment_fade_exit.xml
D fragment/fragment/src/main/res/anim/fragment_open_enter.xml
D fragment/fragment/src/main/res/anim/fragment_open_exit.xml
A fragment/fragment/src/main/res/animator/fragment_close_enter.xml
A fragment/fragment/src/main/res/animator/fragment_close_exit.xml
M fragment/fragment/src/main/res/animator/fragment_fade_enter.xml
M fragment/fragment/src/main/res/animator/fragment_fade_exit.xml
A fragment/fragment/src/main/res/animator/fragment_open_enter.xml
A fragment/fragment/src/main/res/animator/fragment_open_exit.xml
jb...@google.com <jb...@google.com> #8
This has been fixed internally and will be available in the next release of Fragments.
Description
I am experiencing fragment flickering on transitions from left to right on the previous fragment only on the first animation.