diff options
author | Alex Ning <chineseperson5@gmail.com> | 2019-12-17 13:33:15 +0000 |
---|---|---|
committer | Alex Ning <chineseperson5@gmail.com> | 2019-12-17 13:33:15 +0000 |
commit | e69c26db19b4940acdd25573a0b92c67eef0e076 (patch) | |
tree | 44b7b1b847f6e4688b717b4fa216a6854277e28f /app/src/main/res/layout | |
parent | cdd25f3405b7a41e796507612e83b394a1479d64 (diff) | |
download | infinity-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 '')
3 files changed, 32 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" |