aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res
diff options
context:
space:
mode:
authorAlex Ning <chineseperson5@gmail.com>2019-12-17 13:33:15 +0000
committerAlex Ning <chineseperson5@gmail.com>2019-12-17 13:33:15 +0000
commite69c26db19b4940acdd25573a0b92c67eef0e076 (patch)
tree44b7b1b847f6e4688b717b4fa216a6854277e28f /app/src/main/res
parentcdd25f3405b7a41e796507612e83b394a1479d64 (diff)
downloadinfinity-for-reddit-e69c26db19b4940acdd25573a0b92c67eef0e076.tar
infinity-for-reddit-e69c26db19b4940acdd25573a0b92c67eef0e076.tar.gz
infinity-for-reddit-e69c26db19b4940acdd25573a0b92c67eef0e076.tar.bz2
infinity-for-reddit-e69c26db19b4940acdd25573a0b92c67eef0e076.tar.lz
infinity-for-reddit-e69c26db19b4940acdd25573a0b92c67eef0e076.tar.xz
infinity-for-reddit-e69c26db19b4940acdd25573a0b92c67eef0e076.tar.zst
infinity-for-reddit-e69c26db19b4940acdd25573a0b92c67eef0e076.zip
Swipe to refresh in SubscribedThingActivity and MultiRedditListingActivity.
Diffstat (limited to '')
-rw-r--r--app/src/main/res/layout/activity_multi_reddit_listing.xml13
-rw-r--r--app/src/main/res/layout/fragment_followed_users_listing.xml15
-rw-r--r--app/src/main/res/layout/fragment_subscribed_subreddits_listing.xml15
-rw-r--r--app/src/main/res/values/strings.xml2
4 files changed, 34 insertions, 11 deletions
diff --git a/app/src/main/res/layout/activity_multi_reddit_listing.xml b/app/src/main/res/layout/activity_multi_reddit_listing.xml
index 7a5deacb..322f4b30 100644
--- a/app/src/main/res/layout/activity_multi_reddit_listing.xml
+++ b/app/src/main/res/layout/activity_multi_reddit_listing.xml
@@ -31,11 +31,18 @@
</com.google.android.material.appbar.AppBarLayout>
- <androidx.recyclerview.widget.RecyclerView
- android:id="@+id/recycler_view_multi_reddit_listing_activity"
+ <androidx.swiperefreshlayout.widget.SwipeRefreshLayout
+ android:id="@+id/swipe_refresh_layout_multi_reddit_listing_activity"
android:layout_width="match_parent"
android:layout_height="match_parent"
- app:layout_behavior="@string/appbar_scrolling_view_behavior" />
+ app:layout_behavior="@string/appbar_scrolling_view_behavior">
+
+ <androidx.recyclerview.widget.RecyclerView
+ android:id="@+id/recycler_view_multi_reddit_listing_activity"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent" />
+
+ </androidx.swiperefreshlayout.widget.SwipeRefreshLayout>
<LinearLayout
android:id="@+id/fetch_multi_reddit_listing_info_linear_layout_multi_reddit_listing_activity"
diff --git a/app/src/main/res/layout/fragment_followed_users_listing.xml b/app/src/main/res/layout/fragment_followed_users_listing.xml
index adddb913..071e9e72 100644
--- a/app/src/main/res/layout/fragment_followed_users_listing.xml
+++ b/app/src/main/res/layout/fragment_followed_users_listing.xml
@@ -5,11 +5,18 @@
android:layout_height="match_parent"
tools:application=".FollowedUsersListingFragment">
- <androidx.recyclerview.widget.RecyclerView
- android:id="@+id/recycler_view_followed_users_listing_fragment"
+ <androidx.swiperefreshlayout.widget.SwipeRefreshLayout
+ android:id="@+id/swipe_refresh_layout_followed_users_listing_fragment"
android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:clipToPadding="false" />
+ android:layout_height="match_parent">
+
+ <androidx.recyclerview.widget.RecyclerView
+ android:id="@+id/recycler_view_followed_users_listing_fragment"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:clipToPadding="false" />
+
+ </androidx.swiperefreshlayout.widget.SwipeRefreshLayout>
<LinearLayout
android:id="@+id/no_subscriptions_linear_layout_followed_users_listing_fragment"
diff --git a/app/src/main/res/layout/fragment_subscribed_subreddits_listing.xml b/app/src/main/res/layout/fragment_subscribed_subreddits_listing.xml
index 3ff79487..139c8902 100644
--- a/app/src/main/res/layout/fragment_subscribed_subreddits_listing.xml
+++ b/app/src/main/res/layout/fragment_subscribed_subreddits_listing.xml
@@ -5,11 +5,18 @@
android:layout_height="match_parent"
tools:application=".SubscribedSubredditsListingFragment">
- <androidx.recyclerview.widget.RecyclerView
- android:id="@+id/recycler_view_subscribed_subreddits_listing_fragment"
+ <androidx.swiperefreshlayout.widget.SwipeRefreshLayout
+ android:id="@+id/swipe_refresh_layout_subscribed_subreddits_listing_fragment"
android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:clipToPadding="false" />
+ android:layout_height="match_parent">
+
+ <androidx.recyclerview.widget.RecyclerView
+ android:id="@+id/recycler_view_subscribed_subreddits_listing_fragment"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:clipToPadding="false" />
+
+ </androidx.swiperefreshlayout.widget.SwipeRefreshLayout>
<LinearLayout
android:id="@+id/no_subscriptions_linear_layout_subreddits_listing_fragment"
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index 23bd47be..366a6980 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -375,4 +375,6 @@
<string name="elapsed_time_years_ago">%1$d Years</string>
<string name="error_getting_multi_reddit_data">Error getting multireddit data</string>
+ <string name="error_loading_multi_reddit_list">Cannot sync multireddits</string>
+ <string name="error_loading_subscriptions">Cannot sync subscriptions</string>
</resources>