public boolean addAll(List<ImageInfo> collection){
  final boolean added=data.addAll(collection);
  notifyItemRangeInserted(0,data.size() + 1);
  return added;
}

public boolean addAll ( List < ImageInfo > collection ) { final boolean added = data . addAll ( collection ) ; notifyItemRangeInserted ( 0 , data . size ( ) + 1 ) ; return added ; }
adds the objects in the specified collection to the end of the data . the objects are added in the order in which they are returned from the collection ' s iterator .
