diff options
author | Alex Ning <chineseperson5@gmail.com> | 2019-11-19 08:23:45 +0000 |
---|---|---|
committer | Alex Ning <chineseperson5@gmail.com> | 2019-11-19 08:23:45 +0000 |
commit | ca81ec49cf8fba4191673903bd8d7c6ef39394e6 (patch) | |
tree | 99254d20294d147dc6e800e39e3fbc71316d5e62 /app/src/main/res | |
parent | 47b57fd50fc21c796f59cd5165fa7741d7ef944e (diff) | |
download | infinity-for-reddit-ca81ec49cf8fba4191673903bd8d7c6ef39394e6.tar infinity-for-reddit-ca81ec49cf8fba4191673903bd8d7c6ef39394e6.tar.gz infinity-for-reddit-ca81ec49cf8fba4191673903bd8d7c6ef39394e6.tar.bz2 infinity-for-reddit-ca81ec49cf8fba4191673903bd8d7c6ef39394e6.tar.lz infinity-for-reddit-ca81ec49cf8fba4191673903bd8d7c6ef39394e6.tar.xz infinity-for-reddit-ca81ec49cf8fba4191673903bd8d7c6ef39394e6.tar.zst infinity-for-reddit-ca81ec49cf8fba4191673903bd8d7c6ef39394e6.zip |
Swipe down to refresh is available in other activities.
Diffstat (limited to 'app/src/main/res')
-rw-r--r-- | app/src/main/res/layout/activity_view_message.xml | 25 | ||||
-rw-r--r-- | app/src/main/res/layout/activity_view_post_detail.xml | 24 | ||||
-rw-r--r-- | app/src/main/res/layout/fragment_comments_listing.xml | 26 | ||||
-rw-r--r-- | app/src/main/res/layout/fragment_post.xml | 3 | ||||
-rw-r--r-- | app/src/main/res/layout/fragment_subreddit_listing.xml | 26 | ||||
-rw-r--r-- | app/src/main/res/layout/fragment_user_listing.xml | 26 | ||||
-rw-r--r-- | app/src/main/res/layout/item_post_compact.xml | 1 |
7 files changed, 58 insertions, 73 deletions
diff --git a/app/src/main/res/layout/activity_view_message.xml b/app/src/main/res/layout/activity_view_message.xml index 12e31b01..25b4f76c 100644 --- a/app/src/main/res/layout/activity_view_message.xml +++ b/app/src/main/res/layout/activity_view_message.xml @@ -38,22 +38,19 @@ android:layout_height="match_parent" app:layout_behavior="@string/appbar_scrolling_view_behavior" > - <com.lsjwzh.widget.materialloadingprogressbar.CircleProgressBar - android:id="@+id/progress_bar_view_message_activity" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_centerHorizontal="true" - android:layout_marginTop="16dp" - android:layout_marginBottom="16dp" - app:mlpb_progress_stoke_width="3dp" - app:mlpb_progress_color="@color/colorAccent" - app:mlpb_background_color="?attr/circularProgressBarBackground" /> - - <androidx.recyclerview.widget.RecyclerView - android:id="@+id/recycler_view_view_message_activity" + <androidx.swiperefreshlayout.widget.SwipeRefreshLayout + android:id="@+id/swipe_refresh_layout_view_message_activity" android:layout_width="match_parent" android:layout_height="match_parent" - android:clipToPadding="false"/> + app:layout_behavior="@string/appbar_scrolling_view_behavior"> + + <androidx.recyclerview.widget.RecyclerView + android:id="@+id/recycler_view_view_message_activity" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:clipToPadding="false"/> + + </androidx.swiperefreshlayout.widget.SwipeRefreshLayout> <LinearLayout android:id="@+id/fetch_messages_info_linear_layout_view_message_activity" diff --git a/app/src/main/res/layout/activity_view_post_detail.xml b/app/src/main/res/layout/activity_view_post_detail.xml index 98794359..4ee9dff7 100644 --- a/app/src/main/res/layout/activity_view_post_detail.xml +++ b/app/src/main/res/layout/activity_view_post_detail.xml @@ -33,19 +33,19 @@ </com.google.android.material.appbar.AppBarLayout> - <ProgressBar - android:id="@+id/progress_bar_view_post_detail_activity" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_gravity="center" - android:visibility="gone" /> - - <androidx.recyclerview.widget.RecyclerView - android:id="@+id/recycler_view_view_post_detail" + <androidx.swiperefreshlayout.widget.SwipeRefreshLayout + android:id="@+id/swipe_refresh_layout_view_post_detail_activity" android:layout_width="match_parent" - android:layout_height="wrap_content" - android:clipToPadding="false" - app:layout_behavior="@string/appbar_scrolling_view_behavior" /> + android:layout_height="match_parent" + app:layout_behavior="@string/appbar_scrolling_view_behavior"> + + <androidx.recyclerview.widget.RecyclerView + android:id="@+id/recycler_view_view_post_detail" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:clipToPadding="false" /> + + </androidx.swiperefreshlayout.widget.SwipeRefreshLayout> <LinearLayout android:id="@+id/fetch_post_info_linear_layout_view_post_detail_activity" diff --git a/app/src/main/res/layout/fragment_comments_listing.xml b/app/src/main/res/layout/fragment_comments_listing.xml index 18d4854b..e6096cb2 100644 --- a/app/src/main/res/layout/fragment_comments_listing.xml +++ b/app/src/main/res/layout/fragment_comments_listing.xml @@ -7,22 +7,18 @@ android:id="@+id/coordinator_layout_comments_listing_fragment" tools:application="ml.docilealligator.infinityforreddit.Fragment.CommentsListingFragment"> - <com.lsjwzh.widget.materialloadingprogressbar.CircleProgressBar - android:id="@+id/progress_bar_comments_listing_fragment" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_marginTop="16dp" - android:layout_marginBottom="16dp" - app:mlpb_progress_stoke_width="3dp" - app:mlpb_progress_color="@color/colorAccent" - app:mlpb_background_color="?attr/circularProgressBarBackground" - android:layout_gravity="center_horizontal"/> - - <androidx.recyclerview.widget.RecyclerView - android:id="@+id/recycler_view_comments_listing_fragment" + <androidx.swiperefreshlayout.widget.SwipeRefreshLayout + android:id="@+id/swipe_refresh_layout_view_comments_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_comments_listing_fragment" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:clipToPadding="false" /> + + </androidx.swiperefreshlayout.widget.SwipeRefreshLayout> <LinearLayout android:id="@+id/fetch_comments_info_linear_layout_comments_listing_fragment" diff --git a/app/src/main/res/layout/fragment_post.xml b/app/src/main/res/layout/fragment_post.xml index 263929d6..7862ba25 100644 --- a/app/src/main/res/layout/fragment_post.xml +++ b/app/src/main/res/layout/fragment_post.xml @@ -8,8 +8,7 @@ <androidx.swiperefreshlayout.widget.SwipeRefreshLayout android:id="@+id/swipe_refresh_layout_post_fragment" android:layout_width="match_parent" - android:layout_height="match_parent" - android:background="@color/backgroundColor"> + android:layout_height="match_parent"> <androidx.recyclerview.widget.RecyclerView android:id="@+id/recycler_view_post_fragment" diff --git a/app/src/main/res/layout/fragment_subreddit_listing.xml b/app/src/main/res/layout/fragment_subreddit_listing.xml index d956ebc7..d9fba175 100644 --- a/app/src/main/res/layout/fragment_subreddit_listing.xml +++ b/app/src/main/res/layout/fragment_subreddit_listing.xml @@ -7,22 +7,18 @@ xmlns:app="http://schemas.android.com/apk/res-auto" tools:application=".SubredditListingFragment"> - <com.lsjwzh.widget.materialloadingprogressbar.CircleProgressBar - android:id="@+id/progress_bar_subreddit_listing_fragment" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_marginTop="16dp" - android:layout_marginBottom="16dp" - app:mlpb_progress_stoke_width="3dp" - app:mlpb_progress_color="@color/colorAccent" - app:mlpb_background_color="?attr/circularProgressBarBackground" - android:layout_gravity="center_horizontal"/> - - <androidx.recyclerview.widget.RecyclerView - android:id="@+id/recycler_view_subreddit_listing_fragment" + <androidx.swiperefreshlayout.widget.SwipeRefreshLayout + android:id="@+id/swipe_refresh_layout_subreddit_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_subreddit_listing_fragment" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:clipToPadding="false" /> + + </androidx.swiperefreshlayout.widget.SwipeRefreshLayout> <LinearLayout android:id="@+id/fetch_subreddit_listing_info_linear_layout_subreddit_listing_fragment" diff --git a/app/src/main/res/layout/fragment_user_listing.xml b/app/src/main/res/layout/fragment_user_listing.xml index 7decd8b7..321c789b 100644 --- a/app/src/main/res/layout/fragment_user_listing.xml +++ b/app/src/main/res/layout/fragment_user_listing.xml @@ -7,22 +7,18 @@ xmlns:app="http://schemas.android.com/apk/res-auto" tools:application=".UserListingFragment"> - <com.lsjwzh.widget.materialloadingprogressbar.CircleProgressBar - android:id="@+id/progress_bar_user_listing_fragment" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_marginTop="16dp" - android:layout_marginBottom="16dp" - app:mlpb_progress_stoke_width="3dp" - app:mlpb_progress_color="@color/colorAccent" - app:mlpb_background_color="?attr/circularProgressBarBackground" - android:layout_gravity="center_horizontal"/> - - <androidx.recyclerview.widget.RecyclerView - android:id="@+id/recycler_view_user_listing_fragment" + <androidx.swiperefreshlayout.widget.SwipeRefreshLayout + android:id="@+id/swipe_refresh_layout_user_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_user_listing_fragment" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:clipToPadding="false" /> + + </androidx.swiperefreshlayout.widget.SwipeRefreshLayout> <LinearLayout android:id="@+id/fetch_user_listing_info_linear_layout_user_listing_fragment" diff --git a/app/src/main/res/layout/item_post_compact.xml b/app/src/main/res/layout/item_post_compact.xml index f8c48962..c8ab31c2 100644 --- a/app/src/main/res/layout/item_post_compact.xml +++ b/app/src/main/res/layout/item_post_compact.xml @@ -3,6 +3,7 @@ xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="wrap_content" + app:cardBackgroundColor="?attr/cardViewBackgroundColor" xmlns:tools="http://schemas.android.com/tools"> <LinearLayout |