From d6dd171ac43db9e3674149f75e05c35f52e18cb2 Mon Sep 17 00:00:00 2001 From: Alex Ning Date: Sat, 4 Apr 2020 16:10:25 +0800 Subject: Editing multireddits is now available. --- .../res/layout/activity_create_multi_reddit.xml | 3 +- .../main/res/layout/activity_edit_multi_reddit.xml | 130 +++++++++++++++++++++ .../res/layout/activity_selected_subreddits.xml | 49 ++++++++ .../main/res/layout/item_selected_subreddit.xml | 25 ++++ .../main/res/menu/create_multi_reddit_activity.xml | 4 +- .../main/res/menu/edit_multi_reddit_activity.xml | 10 ++ .../main/res/menu/selected_subreddits_activity.xml | 10 ++ .../res/menu/view_multi_reddit_detail_activity.xml | 8 +- app/src/main/res/values/strings.xml | 8 +- app/src/main/res/xml/interface_preference.xml | 3 +- app/src/main/res/xml/searchable.xml | 6 - 11 files changed, 243 insertions(+), 13 deletions(-) create mode 100644 app/src/main/res/layout/activity_edit_multi_reddit.xml create mode 100644 app/src/main/res/layout/activity_selected_subreddits.xml create mode 100644 app/src/main/res/layout/item_selected_subreddit.xml create mode 100644 app/src/main/res/menu/edit_multi_reddit_activity.xml create mode 100644 app/src/main/res/menu/selected_subreddits_activity.xml delete mode 100644 app/src/main/res/xml/searchable.xml (limited to 'app/src/main/res') diff --git a/app/src/main/res/layout/activity_create_multi_reddit.xml b/app/src/main/res/layout/activity_create_multi_reddit.xml index 07bbcea1..be4bdeda 100644 --- a/app/src/main/res/layout/activity_create_multi_reddit.xml +++ b/app/src/main/res/layout/activity_create_multi_reddit.xml @@ -108,7 +108,7 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:padding="16dp" - android:text="@string/select_subreddit" + android:text="@string/select_subreddits" android:textSize="?attr/font_default" android:textColor="?attr/primaryTextColor" android:clickable="true" @@ -119,5 +119,4 @@ - \ No newline at end of file diff --git a/app/src/main/res/layout/activity_edit_multi_reddit.xml b/app/src/main/res/layout/activity_edit_multi_reddit.xml new file mode 100644 index 00000000..2cc7af50 --- /dev/null +++ b/app/src/main/res/layout/activity_edit_multi_reddit.xml @@ -0,0 +1,130 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/layout/activity_selected_subreddits.xml b/app/src/main/res/layout/activity_selected_subreddits.xml new file mode 100644 index 00000000..8484ae58 --- /dev/null +++ b/app/src/main/res/layout/activity_selected_subreddits.xml @@ -0,0 +1,49 @@ + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/layout/item_selected_subreddit.xml b/app/src/main/res/layout/item_selected_subreddit.xml new file mode 100644 index 00000000..9653e179 --- /dev/null +++ b/app/src/main/res/layout/item_selected_subreddit.xml @@ -0,0 +1,25 @@ + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/menu/create_multi_reddit_activity.xml b/app/src/main/res/menu/create_multi_reddit_activity.xml index bf151fe6..93a7f1ff 100644 --- a/app/src/main/res/menu/create_multi_reddit_activity.xml +++ b/app/src/main/res/menu/create_multi_reddit_activity.xml @@ -2,9 +2,9 @@ \ No newline at end of file diff --git a/app/src/main/res/menu/edit_multi_reddit_activity.xml b/app/src/main/res/menu/edit_multi_reddit_activity.xml new file mode 100644 index 00000000..fc6a5f0d --- /dev/null +++ b/app/src/main/res/menu/edit_multi_reddit_activity.xml @@ -0,0 +1,10 @@ + + + + \ No newline at end of file diff --git a/app/src/main/res/menu/selected_subreddits_activity.xml b/app/src/main/res/menu/selected_subreddits_activity.xml new file mode 100644 index 00000000..b24e3e51 --- /dev/null +++ b/app/src/main/res/menu/selected_subreddits_activity.xml @@ -0,0 +1,10 @@ + + + + \ No newline at end of file diff --git a/app/src/main/res/menu/view_multi_reddit_detail_activity.xml b/app/src/main/res/menu/view_multi_reddit_detail_activity.xml index abaf8a6a..0da0d682 100644 --- a/app/src/main/res/menu/view_multi_reddit_detail_activity.xml +++ b/app/src/main/res/menu/view_multi_reddit_detail_activity.xml @@ -35,8 +35,14 @@ app:showAsAction="never" /> + + \ 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 e87d9a60..ede07ee1 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -23,6 +23,8 @@ Customize Theme Create Theme Theme Preview + Edit Multireddit + Selected Subreddits Open navigation drawer Close navigation drawer @@ -51,6 +53,7 @@ Change Post Layout View Sidebar Save + Edit MultiReddit Delete Multireddit Share @@ -103,6 +106,7 @@ Cannot fetch subreddit info Cannot fetch user info Cannot fetch sidebar + Cannot fetch multireddit info x%1$d ViewUserDetailActivity @@ -308,6 +312,7 @@ Open Link In App Immersive Interface Enable Bottom Navigation + Has No Effect in Anonymous Mode Vote Buttons on the Right Use Volume Keys to Navigate Comments in Posts Use Volume Keys to Navigate Posts @@ -461,10 +466,11 @@ Name (Max 50 Characters) Description Private - Select Subreddit + Select Subreddits Where is the name? Cannot create this multireddit This multireddit already exists + Cannot edit this multireddit You are logged out %1$s selected Delete successfully diff --git a/app/src/main/res/xml/interface_preference.xml b/app/src/main/res/xml/interface_preference.xml index 0ddedb98..c23b977d 100644 --- a/app/src/main/res/xml/interface_preference.xml +++ b/app/src/main/res/xml/interface_preference.xml @@ -16,7 +16,8 @@ + app:title="@string/settings_enable_bottom_app_bar_title" + app:summary="@string/settings_enable_bottom_app_bar_summary" /> - - \ No newline at end of file -- cgit v1.2.3