Android Listview jumps on change in adapter content
<p>I am using a scroll listener to detect the end of the Listview.The list initially has 20 items. When the end is reached I populate the list with 10 more items from the DB. At the same time I remove the top 10 items which aren't visible. Since I delete the top 10 items the newly added items are shown on screen and the scroll listener detects end of list and populates 10 more items. So my two problems are</p>

<p>1) How do I stop the position of the item I am currently viewing from changing ?</p>

<p>2) How to prevent the onScrollListener from being called multiple times ?</p>

<p>I guess if you could help me with the first problem, the second would automatically be taken care of. </p>

<p>By the way ,I call notifyDatasetchanged to update the content of the adapter. Kindly help, and thanks.</p>
