title: Android - Reverse listview as message display
body: <p>I've got a little question for my Android App.
  I searched for a long time but found nothing about my problem.</p>
  
  <p><em>Scenario</em> : I've to display a <strong>revert listview</strong> (as Facebook Messenger).
  And when the user scrolls to the top, load more messages.</p>
  
  <p><em>Problem</em> : After <code>notifiyDataAsChanged()</code> call, the scroll is not the same!
  I want to conserve exactly the same position as before loading.</p>
  
  <p>I tried that code :</p>
  
  <pre><code>// save index and top position
  int index = list.getFirstVisiblePosition()+result.size();
  View v = list.getChildAt(index);
  int top = (v == null) ? 0 : v.getTop();
  
  // ...
  // restore
  list.setSelectionFromTop(index, top);
  </code></pre>
  
  <p>But the scroll is not <strong>exactly</strong> the same after loading.</p>
  
  <p>Have you got an idea ?</p>