diff options
author | Alex Ning <chineseperson5@gmail.com> | 2020-04-05 08:21:47 +0000 |
---|---|---|
committer | Alex Ning <chineseperson5@gmail.com> | 2020-04-05 08:21:47 +0000 |
commit | 7a429f902dc0e9519382032cca2da97816877b0d (patch) | |
tree | 18c41d46c31e3a12517457bd014632a4d38a6cfd /app/src/main/res | |
parent | 28b9eb37daf90b4a4282788ab19093e5d4a63250 (diff) | |
download | infinity-for-reddit-7a429f902dc0e9519382032cca2da97816877b0d.tar infinity-for-reddit-7a429f902dc0e9519382032cca2da97816877b0d.tar.gz infinity-for-reddit-7a429f902dc0e9519382032cca2da97816877b0d.tar.bz2 infinity-for-reddit-7a429f902dc0e9519382032cca2da97816877b0d.tar.lz infinity-for-reddit-7a429f902dc0e9519382032cca2da97816877b0d.tar.xz infinity-for-reddit-7a429f902dc0e9519382032cca2da97816877b0d.tar.zst infinity-for-reddit-7a429f902dc0e9519382032cca2da97816877b0d.zip |
Long press a multireddit in the list to show some options. Fix some UI issues.
Diffstat (limited to '')
4 files changed, 58 insertions, 2 deletions
diff --git a/app/src/main/res/layout/activity_selected_subreddits.xml b/app/src/main/res/layout/activity_selected_subreddits.xml index 8484ae58..44edbd7e 100644 --- a/app/src/main/res/layout/activity_selected_subreddits.xml +++ b/app/src/main/res/layout/activity_selected_subreddits.xml @@ -44,6 +44,7 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_margin="@dimen/fab_margin" - android:layout_gravity="bottom|end" /> + android:layout_gravity="bottom|end" + android:src="@drawable/ic_add_24dp" /> </androidx.coordinatorlayout.widget.CoordinatorLayout>
\ No newline at end of file diff --git a/app/src/main/res/layout/fragment_multi_reddit_options_bottom_sheet.xml b/app/src/main/res/layout/fragment_multi_reddit_options_bottom_sheet.xml new file mode 100644 index 00000000..466e90a0 --- /dev/null +++ b/app/src/main/res/layout/fragment_multi_reddit_options_bottom_sheet.xml @@ -0,0 +1,51 @@ +<?xml version="1.0" encoding="utf-8"?> +<androidx.core.widget.NestedScrollView xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:paddingBottom="8dp" + android:overScrollMode="never"> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="vertical"> + + <TextView + android:id="@+id/edit_multi_reddit_text_view_multi_reddit_options_bottom_sheet_fragment" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:gravity="center_vertical" + android:paddingTop="16dp" + android:paddingBottom="16dp" + android:paddingStart="32dp" + android:paddingEnd="32dp" + android:text="@string/edit_multi_reddit" + android:textColor="?attr/primaryTextColor" + android:textSize="?attr/font_default" + android:drawableStart="@drawable/ic_edit_24dp" + android:drawablePadding="48dp" + android:clickable="true" + android:focusable="true" + android:background="?attr/selectableItemBackground" /> + + <TextView + android:id="@+id/delete_multi_reddit_text_view_multi_reddit_options_bottom_sheet_fragment" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:gravity="center_vertical" + android:paddingTop="16dp" + android:paddingBottom="16dp" + android:paddingStart="32dp" + android:paddingEnd="32dp" + android:text="@string/delete_multi_reddit" + android:textColor="?attr/primaryTextColor" + android:textSize="?attr/font_default" + android:drawableStart="@drawable/ic_delete_24dp" + android:drawablePadding="48dp" + android:clickable="true" + android:focusable="true" + android:background="?attr/selectableItemBackground" /> + + </LinearLayout> + +</androidx.core.widget.NestedScrollView>
\ No newline at end of file diff --git a/app/src/main/res/menu/customize_theme_activity.xml b/app/src/main/res/menu/customize_theme_activity.xml index b48416ae..5e0125d3 100644 --- a/app/src/main/res/menu/customize_theme_activity.xml +++ b/app/src/main/res/menu/customize_theme_activity.xml @@ -4,7 +4,7 @@ <item android:id="@+id/action_preview_customize_theme_activity" android:orderInCategory="1" - android:title="@string/action_save" + android:title="@string/action_preview" android:icon="@drawable/ic_preview_24dp" app:showAsAction="ifRoom" /> diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 0c78a920..38a1ab79 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -56,6 +56,7 @@ <string name="action_edit_multi_reddit">Edit MultiReddit</string> <string name="action_delete_multi_reddit">Delete Multireddit</string> <string name="action_share">Share</string> + <string name="action_preview">Preview</string> <string name="parse_json_response_error">Error occurred when parsing the JSON response</string> <string name="retrieve_token_error">Error Retrieving the token</string> @@ -683,4 +684,7 @@ <string name="author_flair_preview">Author Flair</string> <string name="comment_content_preview">I got my girlfriend a “Get better soon” card.\nShe\'s not ill or anything, but she could definitely get better.</string> + <string name="edit_multi_reddit">Edit Multireddit</string> + <string name="delete_multi_reddit">Delete Multireddit</string> + </resources> |