The new Android version (Android 11) added new set of APIs let you synchronize your app’s content with the IME (input method editor, aka soft keyboard) and system bars as they animate on and offscreen, making it much easier to create natural, intuitive and jank-free IME transitions.
So, how to apply the windowinsetsanimation in android r (Android 11)?
Here is a sample gif of the desired animation effects. There are two modes, WindowInsetsAnimation.Callback and WindowInsetsAnimationController.
In your build.gradle
file, set your minSdk version to android R
minSdkVersion "R"
Define your fragment with RecyclerView and EditText
A complete working sample can be found here.