Skip to content
 
 

Latest commit

 

History

8 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PullToRefresharp

Pull To Refresh for Android in C#

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

Simple integration:

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();

Features

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).

Fork it on GitHub!

PullToRefresharp on GitHub

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.

About

A pull-to-refresh library for Android in C#

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages