刷新列表的某个属性
public void updataFilter(int position) {
for (int i = 0; i < list.size(); i++) {
FilterBean bean = list.get(i);
if (position == i) {
bean.is_select_filter = true;
} else {
bean.is_select_filter = false;
}
}
if (adapter!=null){
adapter.setDataList(list);
}
}
//在适配器中创建这个方法
public void setDataList(List<T> list) {
this.datas = list;
notifyDataSetChanged();
}