Chris Banes·Follow1 min read·Aug 25, 2020--ShareHi, the sample uses a function called copyBoundsInWindow() for this:https://github.com/android/user-interface-samples/blob/master/WindowInsetsAnimation/app/src/main/java/com/google/android/samples/insetsanimation/utils.kt#L27