title: Android ListView add items to top without list view scroll
body: <p>I have a listView and I want to add new items to the top of the list view but I dont want list view to scroll its content. I want user to look at the same item as he was looking before new items were added.</p>
  
  <p>This is how I add new items to ListView:</p>
  
  <pre><code>this.commentsListViewAdapter.addRangeToTop(comments);
  this.commentsListViewAdapter.notifyDataSetChanged();
  </code></pre>
  
  <p>and this is <code>addRangeToTop</code> method:</p>
  
  <pre><code>public void addRangeToTop(ArrayList&lt;Comment&gt; comments)
  {
      for (Comment comment : comments)
      {
          this.insert(comment, 0);        
      }
  }
  </code></pre>
  
  <p>this is my listView:</p>
  
  <pre><code>&lt;ListView
      android:id="@+id/CommentsListView"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"
      android:layout_above="@+id/AddCommentLayout" 
      android:stackFromBottom="true" &gt;        
  &lt;/ListView&gt;
  </code></pre>
  
  <p>What I want to do is to load old comments when user scrolls to the top.</p>
  
  <p>Thank you for your help.</p>