PullToRefresh-ListView
PullToRefresh-ListView copied to clipboard
setOnItemClickListener has the wrong position.
The position is wrong (may be -1) if item is clicked when pulling or refreshing.
listView.setOnItemClickListener(new AdapterView.OnItemClickListener() {
@Override
public void onItemClick(AdapterView<?> adapterView, View view, int position, long l) {
}
});
Any news on this? I'm having the same problem as well.
the listview has a head view as default. if you add head view , the count will be more.
Just do position + 1 and you will be ok