/** * 删除元素 * * @param position */ public void removeElement(int position) { if (data != null && data.size() > position) { data.remove(position); notifyItemRemoved(position); notifyItemChanged(position); } }
/**
* 删除元素
*
* @param position
*/
public void removeElement(int position) {
if (data != null && data.size() > position) {
data.remove(position);
notifyItemRemoved(position);
notifyItemChanged(position);
}
}