From e439b840957030cdce7b310b595cfa9add844422 Mon Sep 17 00:00:00 2001 From: Alex Ning Date: Thu, 7 May 2020 14:05:33 +0800 Subject: Video autoplay in ViewPostDetailActivity. Optimize CommentAndPostRecyclerViewAdapter. --- .../main/res/layout/activity_view_post_detail.xml | 2 +- app/src/main/res/layout/item_post.xml | 361 -------------------- app/src/main/res/layout/item_post_compact.xml | 8 +- app/src/main/res/layout/item_post_detail.xml | 362 --------------------- .../item_post_detail_image_and_gif_autoplay.xml | 317 ++++++++++++++++++ app/src/main/res/layout/item_post_detail_link.xml | 327 +++++++++++++++++++ .../layout/item_post_detail_no_preview_link.xml | 305 +++++++++++++++++ app/src/main/res/layout/item_post_detail_text.xml | 288 ++++++++++++++++ .../item_post_detail_video_and_gif_preview.xml | 330 +++++++++++++++++++ .../res/layout/item_post_detail_video_autoplay.xml | 294 +++++++++++++++++ .../layout/item_post_image_and_gif_autoplay.xml | 313 ++++++++++++++++++ .../item_post_image_and_gif_autoplay_type.xml | 313 ------------------ app/src/main/res/layout/item_post_link.xml | 324 ++++++++++++++++++ app/src/main/res/layout/item_post_link_type.xml | 324 ------------------ .../main/res/layout/item_post_no_preview_link.xml | 293 +++++++++++++++++ .../res/layout/item_post_no_preview_link_type.xml | 293 ----------------- app/src/main/res/layout/item_post_text.xml | 288 ++++++++++++++++ app/src/main/res/layout/item_post_text_type.xml | 288 ---------------- .../res/layout/item_post_video_and_gif_preview.xml | 328 +++++++++++++++++++ .../item_post_video_and_gif_preview_type.xml | 328 ------------------- .../res/layout/item_post_video_type_autoplay.xml | 6 +- 21 files changed, 3415 insertions(+), 2277 deletions(-) delete mode 100644 app/src/main/res/layout/item_post.xml delete mode 100644 app/src/main/res/layout/item_post_detail.xml create mode 100644 app/src/main/res/layout/item_post_detail_image_and_gif_autoplay.xml create mode 100644 app/src/main/res/layout/item_post_detail_link.xml create mode 100644 app/src/main/res/layout/item_post_detail_no_preview_link.xml create mode 100644 app/src/main/res/layout/item_post_detail_text.xml create mode 100644 app/src/main/res/layout/item_post_detail_video_and_gif_preview.xml create mode 100644 app/src/main/res/layout/item_post_detail_video_autoplay.xml create mode 100644 app/src/main/res/layout/item_post_image_and_gif_autoplay.xml delete mode 100644 app/src/main/res/layout/item_post_image_and_gif_autoplay_type.xml create mode 100644 app/src/main/res/layout/item_post_link.xml delete mode 100644 app/src/main/res/layout/item_post_link_type.xml create mode 100644 app/src/main/res/layout/item_post_no_preview_link.xml delete mode 100644 app/src/main/res/layout/item_post_no_preview_link_type.xml create mode 100644 app/src/main/res/layout/item_post_text.xml delete mode 100644 app/src/main/res/layout/item_post_text_type.xml create mode 100644 app/src/main/res/layout/item_post_video_and_gif_preview.xml delete mode 100644 app/src/main/res/layout/item_post_video_and_gif_preview_type.xml (limited to 'app/src/main/res') 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 3b0dd281..d867c596 100644 --- a/app/src/main/res/layout/activity_view_post_detail.xml +++ b/app/src/main/res/layout/activity_view_post_detail.xml @@ -37,7 +37,7 @@ android:layout_height="match_parent" app:layout_behavior="@string/appbar_scrolling_view_behavior"> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/app/src/main/res/layout/item_post_compact.xml b/app/src/main/res/layout/item_post_compact.xml index 8b65f934..d81a2bdc 100644 --- a/app/src/main/res/layout/item_post_compact.xml +++ b/app/src/main/res/layout/item_post_compact.xml @@ -54,7 +54,7 @@ app:layout_constraintTop_toTopOf="parent" /> diff --git a/app/src/main/res/layout/item_post_detail.xml b/app/src/main/res/layout/item_post_detail.xml deleted file mode 100644 index ce515feb..00000000 --- a/app/src/main/res/layout/item_post_detail.xml +++ /dev/null @@ -1,362 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/app/src/main/res/layout/item_post_detail_image_and_gif_autoplay.xml b/app/src/main/res/layout/item_post_detail_image_and_gif_autoplay.xml new file mode 100644 index 00000000..3667d7b5 --- /dev/null +++ b/app/src/main/res/layout/item_post_detail_image_and_gif_autoplay.xml @@ -0,0 +1,317 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/layout/item_post_detail_link.xml b/app/src/main/res/layout/item_post_detail_link.xml new file mode 100644 index 00000000..1b8570da --- /dev/null +++ b/app/src/main/res/layout/item_post_detail_link.xml @@ -0,0 +1,327 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/layout/item_post_detail_no_preview_link.xml b/app/src/main/res/layout/item_post_detail_no_preview_link.xml new file mode 100644 index 00000000..01e887fb --- /dev/null +++ b/app/src/main/res/layout/item_post_detail_no_preview_link.xml @@ -0,0 +1,305 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/layout/item_post_detail_text.xml b/app/src/main/res/layout/item_post_detail_text.xml new file mode 100644 index 00000000..00b81547 --- /dev/null +++ b/app/src/main/res/layout/item_post_detail_text.xml @@ -0,0 +1,288 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/layout/item_post_detail_video_and_gif_preview.xml b/app/src/main/res/layout/item_post_detail_video_and_gif_preview.xml new file mode 100644 index 00000000..5de14a3e --- /dev/null +++ b/app/src/main/res/layout/item_post_detail_video_and_gif_preview.xml @@ -0,0 +1,330 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/layout/item_post_detail_video_autoplay.xml b/app/src/main/res/layout/item_post_detail_video_autoplay.xml new file mode 100644 index 00000000..b73fae27 --- /dev/null +++ b/app/src/main/res/layout/item_post_detail_video_autoplay.xml @@ -0,0 +1,294 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/layout/item_post_image_and_gif_autoplay.xml b/app/src/main/res/layout/item_post_image_and_gif_autoplay.xml new file mode 100644 index 00000000..e29f4287 --- /dev/null +++ b/app/src/main/res/layout/item_post_image_and_gif_autoplay.xml @@ -0,0 +1,313 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/layout/item_post_image_and_gif_autoplay_type.xml b/app/src/main/res/layout/item_post_image_and_gif_autoplay_type.xml deleted file mode 100644 index b2fdf016..00000000 --- a/app/src/main/res/layout/item_post_image_and_gif_autoplay_type.xml +++ /dev/null @@ -1,313 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/app/src/main/res/layout/item_post_link.xml b/app/src/main/res/layout/item_post_link.xml new file mode 100644 index 00000000..66c55908 --- /dev/null +++ b/app/src/main/res/layout/item_post_link.xml @@ -0,0 +1,324 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/layout/item_post_link_type.xml b/app/src/main/res/layout/item_post_link_type.xml deleted file mode 100644 index 43f51b10..00000000 --- a/app/src/main/res/layout/item_post_link_type.xml +++ /dev/null @@ -1,324 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/app/src/main/res/layout/item_post_no_preview_link.xml b/app/src/main/res/layout/item_post_no_preview_link.xml new file mode 100644 index 00000000..bf1ba331 --- /dev/null +++ b/app/src/main/res/layout/item_post_no_preview_link.xml @@ -0,0 +1,293 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/layout/item_post_no_preview_link_type.xml b/app/src/main/res/layout/item_post_no_preview_link_type.xml deleted file mode 100644 index a6ef9eeb..00000000 --- a/app/src/main/res/layout/item_post_no_preview_link_type.xml +++ /dev/null @@ -1,293 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/app/src/main/res/layout/item_post_text.xml b/app/src/main/res/layout/item_post_text.xml new file mode 100644 index 00000000..39ea56f4 --- /dev/null +++ b/app/src/main/res/layout/item_post_text.xml @@ -0,0 +1,288 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/layout/item_post_text_type.xml b/app/src/main/res/layout/item_post_text_type.xml deleted file mode 100644 index cc7a3bb9..00000000 --- a/app/src/main/res/layout/item_post_text_type.xml +++ /dev/null @@ -1,288 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/app/src/main/res/layout/item_post_video_and_gif_preview.xml b/app/src/main/res/layout/item_post_video_and_gif_preview.xml new file mode 100644 index 00000000..ad2e3b9d --- /dev/null +++ b/app/src/main/res/layout/item_post_video_and_gif_preview.xml @@ -0,0 +1,328 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/layout/item_post_video_and_gif_preview_type.xml b/app/src/main/res/layout/item_post_video_and_gif_preview_type.xml deleted file mode 100644 index c3549df4..00000000 --- a/app/src/main/res/layout/item_post_video_and_gif_preview_type.xml +++ /dev/null @@ -1,328 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/app/src/main/res/layout/item_post_video_type_autoplay.xml b/app/src/main/res/layout/item_post_video_type_autoplay.xml index 138090d8..bfbc7456 100644 --- a/app/src/main/res/layout/item_post_video_type_autoplay.xml +++ b/app/src/main/res/layout/item_post_video_type_autoplay.xml @@ -69,7 +69,7 @@ app:layout_constraintTop_toTopOf="parent"/> Date: Mon, 11 May 2020 21:26:55 +0200 Subject: Add swap tap and long click option. --- app/src/main/res/values/strings.xml | 1 + app/src/main/res/xml/gestures_and_buttons_preference.xml | 5 +++++ 2 files changed, 6 insertions(+) (limited to 'app/src/main/res') diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index c12d7105..52ec8509 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -336,6 +336,7 @@ Show Elapsed Time in Posts and Comments Default Post Layout Show Divider in Compact Layout + Swap Tap and Long Press in Comments Swipe Right to Go Back From Comments Lock Jump to Next Top-level Comment Button Lock Bottom Navigation Bar diff --git a/app/src/main/res/xml/gestures_and_buttons_preference.xml b/app/src/main/res/xml/gestures_and_buttons_preference.xml index 4d111187..8cd307e0 100644 --- a/app/src/main/res/xml/gestures_and_buttons_preference.xml +++ b/app/src/main/res/xml/gestures_and_buttons_preference.xml @@ -33,4 +33,9 @@ app:key="volume_keys_navigate_posts" app:title="@string/settings_volume_keys_navigate_posts_title" /> + + \ No newline at end of file -- cgit v1.2.3 From cf4395ed5c972453c225d72c436e189f362656b4 Mon Sep 17 00:00:00 2001 From: Alex Ning Date: Wed, 13 May 2020 12:51:44 +0800 Subject: Customize tabs in main page for logged-in users. --- app/src/main/res/values/arrays.xml | 18 +++++ app/src/main/res/values/strings.xml | 16 ++++- .../xml/customize_main_page_tabs_preferences.xml | 76 ++++++++++++++++++++++ app/src/main/res/xml/interface_preference.xml | 5 ++ 4 files changed, 114 insertions(+), 1 deletion(-) create mode 100644 app/src/main/res/xml/customize_main_page_tabs_preferences.xml (limited to 'app/src/main/res') diff --git a/app/src/main/res/values/arrays.xml b/app/src/main/res/values/arrays.xml index b415b0f5..5fce9e21 100644 --- a/app/src/main/res/values/arrays.xml +++ b/app/src/main/res/values/arrays.xml @@ -122,4 +122,22 @@ XLarge XXLarge + + + Home + Popular + All + Subreddit + MultiReddit + User + + + + 0 + 1 + 2 + 3 + 4 + 5 + \ No newline at end of file diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 52ec8509..5df67ecc 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -321,6 +321,8 @@ Immersive Interface Ignore Navigation Bar in Immersive Interface Prevent the Bottom Navigation Bar Having Extra Padding + Customize Tabs in Main Page + Only for Logged-in User Enable Bottom Navigation Has No Effect in Anonymous Mode Vote Buttons on the Right @@ -393,6 +395,15 @@ Delete All Themes in Database Reset All Settings Clean the database and shared preferences + Restart the app to see the changes + Tab 1 + Tab 2 + Tab 3 + Title + Type + Subreddit Name + MultiReddit Name + Username Cannot get the link @@ -711,10 +722,13 @@ Reported Report failed You haven\'t selected a reason - + It Is Spam It Contains Copyright Issue It Contains Child Pornography It Contains Abusive Content + Home + Best + diff --git a/app/src/main/res/xml/customize_main_page_tabs_preferences.xml b/app/src/main/res/xml/customize_main_page_tabs_preferences.xml new file mode 100644 index 00000000..37e17d0c --- /dev/null +++ b/app/src/main/res/xml/customize_main_page_tabs_preferences.xml @@ -0,0 +1,76 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/xml/interface_preference.xml b/app/src/main/res/xml/interface_preference.xml index 8b67a3bc..58de9ef4 100644 --- a/app/src/main/res/xml/interface_preference.xml +++ b/app/src/main/res/xml/interface_preference.xml @@ -20,6 +20,11 @@ app:summary="@string/settings_immersive_interface_ignore_nav_bar_summary" app:isPreferenceVisible="false" /> + + Date: Wed, 13 May 2020 23:09:22 +0800 Subject: Version 3.1.0. --- app/src/main/res/values/strings.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'app/src/main/res') diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 5df67ecc..6e614a3b 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -401,9 +401,9 @@ Tab 3 Title Type - Subreddit Name - MultiReddit Name - Username + Subreddit Name (Without r/ prefix) + MultiReddit Name (/user/yourusername/m/yourmultiredditname) + Username (Without u/ prefix) Cannot get the link -- cgit v1.2.3 From 2204b72484f9b143ff28e249f2eac3cc900ed3d0 Mon Sep 17 00:00:00 2001 From: Alex Ning Date: Thu, 14 May 2020 10:27:35 +0800 Subject: Fix string value for popular. --- app/src/main/res/values/strings.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/src/main/res') diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 6e614a3b..b44a5157 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -729,6 +729,6 @@ It Contains Abusive Content Home - Best + Popular -- cgit v1.2.3