From 892f61833ce0b388e4a0ebdea51a97e240cbe160 Mon Sep 17 00:00:00 2001 From: "Y.Chen" Date: Wed, 24 Aug 2016 22:07:37 +0100 Subject: [PATCH] Update README.md --- README.md | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index af13090..d07c2ba 100644 --- a/README.md +++ b/README.md @@ -15,9 +15,7 @@ repositories { } } dependencies { - compile 'com.github.allan1st:JellyRefreshLayout:1.0.0' - // or pre-release - // compile 'com.github.allan1st:JellyRefreshLayout:1.1.0' + compile 'com.github.allan1st:JellyRefreshLayout:2.0' } ``` or Maven @@ -32,7 +30,7 @@ or Maven com.github.allan1st JellyRefreshLayout - 1.0.0 + 2.0 ``` @@ -46,6 +44,9 @@ Wrap any RecyclerView/ScrollView/ListView with JellyRefreshLayout android:text="@string/your_loading_text" android:textColor="@color/your_loading_text_color" app:jellyColor="@color/your_jelly_color" + app:pullHeight="128dp" + app:triggerHeight="96dp" + app:headerHeight="56dp" android:layout_width="match_parent" android:layout_height="match_parent"> @@ -67,7 +68,7 @@ mJellyLayout.setRefreshListener(new JellyRefreshLayout.JellyRefreshListener() { ``` and finish refreshing when you are done: ```java -mJellyLayout.finishRefreshing(); +mJellyLayout.setRefreshing(false); // true to start refreshing programmatically ``` You can also find more usages in the sample app included