use of com.yiw.circledemo.bean.FavortItem in project CircleDemo by Naoki2015.
the class MainActivity method update2DeleteFavort.
@Override
public void update2DeleteFavort(int circlePosition, String favortId) {
CircleItem item = (CircleItem) circleAdapter.getDatas().get(circlePosition);
List<FavortItem> items = item.getFavorters();
for (int i = 0; i < items.size(); i++) {
if (favortId.equals(items.get(i).getId())) {
items.remove(i);
circleAdapter.notifyDataSetChanged();
//circleAdapter.notifyItemChanged(circlePosition+1);
return;
}
}
}
Aggregations