title: Android RecyclerView - Keep last visible item visible when keyboard opened
body: <p>If you're using Telegram, you may have seen, if you keep last visible item on X, when keyboard opens, you still see item X and if you close the keyboard, the item X is still on its position.</p>
  
  <p><strong>example:</strong></p>
  
  <blockquote>
    <p>when keyboard is closed already:</p>
    
    <p>Item 1</p>
    
    <p>Item 2</p>
    
    <p>when keyboard is opened:</p>
    
    <p>item 1</p>
    
    <p>item 2</p>
    
    <p>keyboard</p>
    
    <p>when you close the keyboard, the first step is what you will see.</p>
  </blockquote>
  
  <p>I want to implement something like that. How can I do this?</p>