I'm building an application based on Jetpack Navigation. Our UX designer has asked that in some cases, we use the same animation when transitioning between fragments that Android uses when launching a new activity.
Is there a setting I can use for this? Or is this a default animation that I can access via R.anim.something and use in my navigation graph? Is it defined in the AOSP source somewhere that I can copy? And does this vary per OEM?
As per this issue, this is not possible:
So there is no API to retrieve the default activity animation, nor is that something that you can statically include in your app as every OEM may have a different animation and, even within a certain device, different OEM specific user settings may change what the default animation is.