Example:

If you added some header views in ElasticListview and now you want to enable update function again, you need to follow the below steps:

Remove all header views

Enable update function

Add all header views back

The intention of these steps is to assure the update header is at the first position.

You can customize the update header view and load footer view

Example:

// Set your own content view of update header and also need to// set your update state listener to change UI for different update state
mListView.getUpdateHeader()
.setContentView(view, true)
.setOnUpdateStateListener(stateListener);
// Set your own content view of load footer and also need to// set your load state listener to change UI for different load state
mListView.getLoadFooter()
.setContentView(view, true)
.setOnLoadStateListener(stateListener);

There are three load action types, the default is AUTO_LOAD

AUTO_LOAD: when the load footer appears, the onLoad() will be called

RELEASE_TO_LOAD: when the load footer fully appears and touch is release, the onLoad() will be called

CLICK_TO_LOAD: when the load footer fully appears and user click it, the onLoad() will be called