Pull Up to Refresh!

Hi everyone,

I’ve just added a new mode to the Pull-to-Refresh library which allows you to set the View to Pull Up to Refresh (from the bottom) instead of the standard Pull Down from the top.

It’s pretty simple to use, just add another tag in the XML declaration:

<com.handmark.pulltorefresh.library.PullToRefreshListView
  xmlns:ptr="http://schemas.android.com/apk/res/YOUR_APP_PACKAGE_NAME"
    android:id="@+id/pull_refresh_list"
    android:layout_height="fill_parent"
    android:layout_width="fill_parent"
    ptr:mode="pullUpFromBottom" />

As you can see there’s a new mode attribute which was two possible values:

  • pullDownFromTop (default)
  • pullUpFromBottom

And that’s all there is to it!