Add pull-to-refresh functionality to your Android app quickly and easily.
PullToRefresharp is the only C# library that provides pull-to-refresh functionality to ListView, GridView, and ScrollView on Android. It is simple to integrate with, customizable and extensible.
See it in action here: PullToRefresharp in Action
Update your layout:
<pulltorefresharp.views.ViewWrapper
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<pulltorefresharp.widget.GridView
android:id="@id/myGridView" />
</pulltorefresharp.views.ViewWrapper>
Hook into the RefreshActivated event
var gridView = FindViewById<IPullToRefresharpView>(Resource.Id.myGridView);
gridView.RefreshActivated += (o, e) { RefreshMyContent(); };
// when content refresh complete
gridView.OnRefreshCompleted();Out of the box PullToFrefresharp gives you a clean pull-to-refresh header UI and assets. You can change the colors or image assets via XML attributes, or include your own fully custom header.
If you want to add pull-to-refresh to a view type other than GridView, ListView, or ScrollView, you can! Simply create a subclass of the view and implement the IPullToRefreshWrappedView interface (there's almost nothing to it, all you need to do is write a little bit of glue code to proxy most calls to PullToRefresharp.Delegates.ViewDelegate).
PullToRefresharp is free and open source software. If there's something you want to add, please do! The goal of PullToRefresharp is to provide a robust pull-to-refresh framework for all Xamarin.Android (and possiby Xamarin.iOS in the future) applications.