Android : bindView gets called when item inside ListView is clicked

on Monday, October 27, 2014


I have a SherlockListFragment, where the ListView is associated with a CursorAdapter. The ListView is associated with a CursorAdapter, which "maps" two TextView and a ImageView inside my item.


This is the onListItemClick inside my Fragment.



@Override
public void onListItemClick(ListView l, View v, int pos, long id) {
Log.i(TAG,"onListItemClick");
}


Each time I click a item inside a ListView, the bindView (of the CursorAdapter) is called, so the ListView is refreshed.


How can I avoid to refresh the ListView each time?


0 comments:

Post a Comment