3. Modifying Your List
How do I add more items?
How can I add a set of items?
How do I clear all items?
4. ArrayAdapter Helper Methods
add(T Object) – Adds the specified object to the end of the array.
addAll(T… items) – Adds the specified items at the end of the
array.
clear() – Remove all elements from the list
5. ArrayAdapter Helper Methods
notifyDataSetChanged() – notification that the underlying
data has been changed and that the View should refresh itself.
remove(T Object) – Removes the specified object from the array.
6. ArrayAdapter Helper Methods
getItem(int position) – gets Object at specified position in
adapter.
getPosition(T item) – Returns the position of the specified item
in the array.
7. ArrayAdapter Abilities
Filtering – filter data by a certain constraint
Only show data that begins with the letter “S.”
Sorting – sort the contents of the adapter using a
specified comparator.
Sort by alpha A-Z, alpha Z-A, etc.