B4A Library [class] Modified CustomListView with "Pull to refresh" feature

Update: New version based on xCustomListView: https://www.b4x.com/android/forum/threads/b4x-xcustomlistview-pull-to-refresh.94015/

This class is a modified version of CustomListView. It adds a "pull to refresh" feature.

upload_2016-8-14_18-41-41.png


When the user pull down the panel a refresh event is fired. You should catch this event and update the list as necessary. In this example a timer is used to simulate a long operation.

Notes:
- You should call clv.AddTopPanel after you add the items with the top panel layout.
- If the list is too short for the scroll view to be scrollable then a "dummy" item will be added as the last item.
- You should call StopRefresh after the update.
 

Attachments

  • PullToRefresh.zip
    10.7 KB · Views: 953
Last edited:
Top