Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Banes committed Dec 23, 2011
1 parent 5b2fbb8 commit 3f05ec4
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ This project aims to provide a reusable Pull to Refresh widget for Android. It i

## Features

* No longer uses a (slow) OnScrollListener
* No longer shows the Tap to Refresh view when the AdapterView can not fill itself.
* Supports both Pulling Down from the top, and Pulling Up from the bottom
* Animated Scrolling for all devices (Tested on 1.6+)
* Works for all AdapterViews. I've implemented both ListView and GridView.
* Works with ExpandableListView (thanks to Stefano Dacchille)
* Maven Support (thanks to Stefano Dacchille)

* No longer uses a (slow) OnScrollListener
* No longer shows the Tap to Refresh view when the AdapterView can not fill itself.

Repository at <https://github.com/chrisbanes/Android-PullToRefresh>.

Expand Down Expand Up @@ -69,6 +69,20 @@ private class GetDataTask extends AsyncTask<Void, Void, String[]> {
}
```


### Pull Up to Refresh

By default this library is set to Pull Down to Refresh, but if you instead to Pull Up to Refresh you can do so via XML:

``` xml
<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" />
```

## Acknowledgments

* [Stefano Dacchille](https://github.com/stefanodacchille)
Expand Down

0 comments on commit 3f05ec4

Please sign in to comment.