'Fragment Transition Animation

I am trying to animate 2 Fragments [Splash Fragment , Fragment 1]

While the transition there is a white blank screen for small milli Secs which should not be there

The code of Animation Resource File : -

<set xmlns:android="http://schemas.android.com/apk/res/android">

<translate android:fromYDelta="100%" android:toXDelta= "0%"  android:duration = "250"/> 
</set>

This file I was adding in Navigation file for a action in the field of enter Anim

The navigation from my splash Fragment is as follows:

 Handler().postDelayed({findNavController().navigate(R.id.action_splashScreen_to_onBording)},3000)

As mentioned the basic problem is while the Transition there is a small window of few milli secs where a white screen is appearing and spoiling the view . How do I remove it?

Thanks in advance



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source