u/Glowing823

Help finding the actual AOSP/Google standard Predictive Back animation

Help finding the actual AOSP/Google standard Predictive Back animation

Hey everyone,

I've attached a video showing the exact screen closing animation from the Android System Settings. I'm trying to find the implementation for this standard Predictive Back animation.

I initially thought this was a default system behavior or at least a readily available component. I tried recreating it manually, but then I noticed that many Google apps seem to use completely different back animations. Does every app really use its own custom implementation for this?

I assume the System Settings app is open source (AOSP), so the implementation of this specific animation must be out there somewhere. I actually downloaded and searched through the AOSP Settings source code. I managed to find a custom animation specifically for the "credentials", but the general predictive back animation used everywhere else in Settings doesn't seem to be explicitly defined there (or at least I couldn't track it down).

Here is what I've already checked:

Here is the part that is driving me crazy: the videos in these official examples show exactly the animation I want, but the actual code provided in their implementation does something completely different!

I'm testing this on the latest Android version and using the latest versions of all relevant libraries.

Am I missing something obvious? Is there a specific AndroidX library or transition I should be using? Any pointers to the AOSP source or a working Compose/View example would save my sanity.

Thanks in advance!

https://reddit.com/link/1t8myb2/video/7lhsyxxle60h1/player

reddit.com
u/Glowing823 — 12 days ago