Note that there are some explanatory texts on larger screens.

plurals
  1. USHeng Sun
    primarykey
    data
    text
    plurals
    1. This table or related slice is empty.
    1. CO@chintankhetiya It is a FragmentTransition replacing one fragment ClassA with another fragment ClassB. The activity contains only the fragment which is replaced as necessary. The animation code is in the original question (the translate) and the FragmentTransaction.setCustomAnimations().
      singulars
    2. CO@ImtiyazKhalani I am using manager.toggleSoftInput(0, 0); to close the keyboard right before the FragmentTransition code. However the keyboard has its own closing animation which does not occur immediately (default android behavior as far as I can tell). Both animations are happening at the same time, the keyboard slides down leaving an empty white space where the keyboard used to be. If there is some way to tell the keyboard to close and *wait* for it to close that might do it too, but I haven't been able to figure that out yet either.
      singulars
    3. COI am not trying to replace the fragment with itself. I am trying to use a custom animation while changing it to a different fragment. I haven't tried it, but I assume I would have the same translate animation problem even if I were to replace it with the same fragment. The fragment changing part is working just fine, it's a problem with the animation. Thanks though :)
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload