summaryrefslogtreecommitdiff
path: root/res
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2014-10-15 16:41:33 +0400
committerAndrew Dolgov <[email protected]>2014-10-15 16:41:33 +0400
commitddb85d210aede04602540ee6109c57984310afe3 (patch)
treeb12cd8f3ba2d643d32a427c9b8d59af6814cb7b4 /res
parent09d124fd407b7ef7008a0365da63dd42587042ea (diff)
remove pulltorefresh library, switch to swiperefreshlayout
Diffstat (limited to 'res')
-rw-r--r--res/layout/cats_fragment.xml18
-rw-r--r--res/layout/feeds_fragment.xml18
-rw-r--r--res/layout/headlines_fragment.xml24
3 files changed, 39 insertions, 21 deletions
diff --git a/res/layout/cats_fragment.xml b/res/layout/cats_fragment.xml
index a883bf9f..cc295e1c 100644
--- a/res/layout/cats_fragment.xml
+++ b/res/layout/cats_fragment.xml
@@ -18,13 +18,19 @@
</TextView>
</LinearLayout>
- <ListView
- android:id="@+id/feeds"
- android:layoutAnimation="@anim/layout_feeds"
- android:layout_width="match_parent"
- android:layout_height="match_parent" >
- </ListView>
+ <android.support.v4.widget.SwipeRefreshLayout
+ android:id="@+id/feeds_swipe_container"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent" >
+ <ListView
+ android:id="@+id/feeds"
+ android:layoutAnimation="@anim/layout_feeds"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent" >
+ </ListView>
+ </android.support.v4.widget.SwipeRefreshLayout>
+
<TextView
android:id="@+id/no_feeds"
android:layout_width="wrap_content"
diff --git a/res/layout/feeds_fragment.xml b/res/layout/feeds_fragment.xml
index d7f24c42..91648b22 100644
--- a/res/layout/feeds_fragment.xml
+++ b/res/layout/feeds_fragment.xml
@@ -18,12 +18,18 @@
</TextView>
</LinearLayout>
- <ListView
- android:id="@+id/feeds"
- android:layoutAnimation="@anim/layout_feeds"
- android:layout_width="match_parent"
- android:layout_height="match_parent" >
- </ListView>
+ <android.support.v4.widget.SwipeRefreshLayout
+ android:id="@+id/feeds_swipe_container"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent" >
+
+ <ListView
+ android:id="@+id/feeds"
+ android:layoutAnimation="@anim/layout_feeds"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent" >
+ </ListView>
+ </android.support.v4.widget.SwipeRefreshLayout>
<TextView
android:id="@+id/no_feeds"
diff --git a/res/layout/headlines_fragment.xml b/res/layout/headlines_fragment.xml
index 5df36557..712da85e 100644
--- a/res/layout/headlines_fragment.xml
+++ b/res/layout/headlines_fragment.xml
@@ -4,15 +4,21 @@
android:layout_width="fill_parent"
android:layout_height="fill_parent">
- <ListView
- android:id="@+id/headlines"
- android:layout_width="match_parent"
- android:layoutAnimation="@anim/layout_headline"
- android:dividerHeight="0dp"
- android:divider="@null"
- android:paddingTop="3dp"
- android:layout_height="match_parent" >
- </ListView>
+ <android.support.v4.widget.SwipeRefreshLayout
+ android:id="@+id/headlines_swipe_container"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent" >
+
+ <ListView
+ android:id="@+id/headlines"
+ android:layout_width="match_parent"
+ android:layoutAnimation="@anim/layout_headline"
+ android:dividerHeight="0dp"
+ android:divider="@null"
+ android:paddingTop="3dp"
+ android:layout_height="match_parent" >
+ </ListView>
+ </android.support.v4.widget.SwipeRefreshLayout>
<LinearLayout
android:id="@+id/loading_container"