我想在LIstView滚动停止listview自动更新(刷新)事情..
OR
如何在滚动时将新适配器分配给同一个ListView ???
请帮助!!
答案 0 :(得分:0)
尝试将数字设置为Tag view.setTag(number)并在OnItemClickListener中获取它:
listView.setOnItemClickListener(new OnItemClickListener() {
@Override
public void onItemClick(AdapterView<?> arg0, View view,
int position, long arg3) {
if (position > 0 && position < mProducts.alternatives.size() + 1){
int number = (Integer)view.getTag();
}
}
});