How can I detect an element listViewto change or do some action when it scrolls over the center screen?
UPD Solution
@Override
public void onScroll(AbsListView view, int firstVisibleItem,
int visibleItemCount, int totalItemCount) {
int half = visibleItemCount/2;
int to = firstVisibleItem+half;
for (int i=firstVisibleItem; i<to; i++) {
Item item = (Item)adapter.getItem(i);
item.read = true;
}
adapter.notifyDataSetChanged();
}
source
share