Just add your desired data to the adapter. For example:
myListAdapter.add(obj1);
The newly added data will be attached at the end of your ListView
.
Remember: when injecting data directly into an Adapter
, you don't need to call its notifyDataSetChanged
method.
If you modify your sourceList
object, in that case its necessary to call notifyDataSetChanged
method in order for the Adapter
to refresh its contents.