title: Recyclerview not scrolling to end when keyboard opens
body: <p>I am using recylerview in my application and whenever new element is added to recyclerview, it scrolls to last element by using</p>
  
  <pre><code>recyclerView.scrollToPosition(adapter.getCount());
  </code></pre>
  
  <p>But, whenever keyboard opens(because of editTextView), it resizes the view and recyclerview gets smaller, but couldn't scroll to last element.</p>
  
  <pre><code>android:windowSoftInputMode="adjustResize"
  </code></pre>
  
  <p>I even tried to used the following code to scroll to last element, but it didn't work</p>
  
  <pre><code>editTextView.setOnFocusChangeListener(new View.OnFocusChangeListener() {
          @Override
          public void onFocusChange(View v, boolean hasFocus) {
              if(hasFocus){
                  recyclerView.scrollToPosition(chatAdapter.getItemCount());
              }
          }
      });
  </code></pre>
  
  <p>I can try <code>adjustPan</code> to shift the pan up, but it is hiding my toolbar.
  Please suggest any way to rectify the issue.</p>