I'm deleting my ArrayList
data using for loop but the loop only deletes the last index of my list. What's wrong with this? I think this would be easy but I'm taking an hour an still cannot solve this.
for (int i = 0; i < selectedRowFile.size() - 1; i++) {
imagesFileName.remove(i);
mylist.remove(i);
adapter.notifyDataSetChanged();
Toast.makeText(getApplicationContext(),"" + selectedRowFile.size() , Toast.LENGTH_LONG).show();
}