I have a RecyclerView and an EditText below it. They are the children of a vertical LinearLayout. When I click the EditText, the soft keyboard shows, but the animation isn't very smooth. It seems Android first creates dead space for the keyboard by pushing the RecyclerView up and then the keyboard translates into this space.
On Android 11's Messages app, I noticed that the keyboard AND the content above both translate together. How can I achieve a similar effect?
I'm using AdjustResize as my window soft input mode. I want to avoid using AdjustPan because it won't allow scrolling to the top of the RecyclerView if it contains many items. I noticed Messages can scroll to top just fine.