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/layout | |
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 'app/src/main/res/layout')
-rw-r--r-- | app/src/main/res/layout/activity_selected_subreddits.xml | 3 | ||||
-rw-r--r-- | app/src/main/res/layout/fragment_multi_reddit_options_bottom_sheet.xml | 51 |
2 files changed, 53 insertions, 1 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 |