From 1fc84239069fa19da7f7c7b0b0825717aad4999c Mon Sep 17 00:00:00 2001 From: Alex Ning Date: Fri, 26 Jul 2019 10:50:32 +0800 Subject: Sorting posts is now available. Minor bugs fixed. --- app/src/main/res/drawable/ic_outline_sort_24px.xml | 9 ++ app/src/main/res/layout/activity_post_video.xml | 8 +- .../res/layout/fragment_sort_type_bottom_sheet.xml | 97 ++++++++++++++++++++++ app/src/main/res/layout/sort_type_bottom_sheet.xml | 97 ++++++++++++++++++++++ app/src/main/res/menu/main_activity.xml | 13 ++- .../res/menu/view_subreddit_detail_activity.xml | 13 ++- app/src/main/res/values/strings.xml | 12 +++ 7 files changed, 238 insertions(+), 11 deletions(-) create mode 100644 app/src/main/res/drawable/ic_outline_sort_24px.xml create mode 100644 app/src/main/res/layout/fragment_sort_type_bottom_sheet.xml create mode 100644 app/src/main/res/layout/sort_type_bottom_sheet.xml (limited to 'app/src/main/res') diff --git a/app/src/main/res/drawable/ic_outline_sort_24px.xml b/app/src/main/res/drawable/ic_outline_sort_24px.xml new file mode 100644 index 00000000..e795d2a2 --- /dev/null +++ b/app/src/main/res/drawable/ic_outline_sort_24px.xml @@ -0,0 +1,9 @@ + + + diff --git a/app/src/main/res/layout/activity_post_video.xml b/app/src/main/res/layout/activity_post_video.xml index f0df4eea..d1c3ed58 100644 --- a/app/src/main/res/layout/activity_post_video.xml +++ b/app/src/main/res/layout/activity_post_video.xml @@ -166,13 +166,11 @@ android:textColor="@color/colorAccent" android:visibility="gone" /> - + android:visibility="gone"/> diff --git a/app/src/main/res/layout/fragment_sort_type_bottom_sheet.xml b/app/src/main/res/layout/fragment_sort_type_bottom_sheet.xml new file mode 100644 index 00000000..bdf38858 --- /dev/null +++ b/app/src/main/res/layout/fragment_sort_type_bottom_sheet.xml @@ -0,0 +1,97 @@ + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/layout/sort_type_bottom_sheet.xml b/app/src/main/res/layout/sort_type_bottom_sheet.xml new file mode 100644 index 00000000..5951b431 --- /dev/null +++ b/app/src/main/res/layout/sort_type_bottom_sheet.xml @@ -0,0 +1,97 @@ + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/menu/main_activity.xml b/app/src/main/res/menu/main_activity.xml index 2d4d02ad..43cb0785 100644 --- a/app/src/main/res/menu/main_activity.xml +++ b/app/src/main/res/menu/main_activity.xml @@ -4,21 +4,28 @@ xmlns:tools="http://schemas.android.com/tools" tools:context="ml.docilealligator.infinityforreddit.MainActivity"> + + \ No newline at end of file diff --git a/app/src/main/res/menu/view_subreddit_detail_activity.xml b/app/src/main/res/menu/view_subreddit_detail_activity.xml index 41e83e7d..9dcdb633 100644 --- a/app/src/main/res/menu/view_subreddit_detail_activity.xml +++ b/app/src/main/res/menu/view_subreddit_detail_activity.xml @@ -4,21 +4,28 @@ xmlns:tools="http://schemas.android.com/tools" tools:context="ml.docilealligator.infinityforreddit.ViewSubredditDetailActivity"> + + \ 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 c7c521ad..80775602 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -133,4 +133,16 @@ All subreddits Error loading this post.\nTap to retry. + + Sort + Best + Hot + New + Random + Rising + Top + Controversial + + + Hello blank fragment -- cgit v1.2.3