I have a listView with an adapter.

I want to get from the servers the items and then I load an image to each item.

The server can return tens of items so I ask them from the client by pages of 10.

I don't want the user to choose a page or "next\back"

Just to add more items when needed.

I have thought to use a local collection and fill it with the next ten items.

My indicator is in Adapter::getView where position == 8.

The problem is that the function that fills the local collection from the server response is outside of the adapter.

How can I call this method and then refresh the adapter or invalidate it? 

Would you use a different approach ?

Since I load images I need to compress them so I cannot use and ready-made endless-lists which are stored on git.