Mar 28, 2013 Replies: 20 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. 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 PullToRefresh.zip 10.7 KB · Views: 1,456 Last edited: Jun 11, 2018 Click to expand...
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. 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.
Erel B4X founder Staff member Licensed User Longtime User Aug 14, 2016 #21 I've uploaded a new version that is implemented as a custom view.