diff options
author | Alex Ning <chineseperson5@gmail.com> | 2020-10-04 03:24:50 +0000 |
---|---|---|
committer | Alex Ning <chineseperson5@gmail.com> | 2020-10-04 03:24:50 +0000 |
commit | 4f19bd83aa8d2500d825ce63ae8770325b4a44e9 (patch) | |
tree | 47d2c32a87b1c5c074ea84c5077c11db62ac3926 /app/src/main/res/layout | |
parent | 60fdb813c02f266c8c5ecaf20bfaee711372a982 (diff) | |
download | infinity-for-reddit-4f19bd83aa8d2500d825ce63ae8770325b4a44e9.tar infinity-for-reddit-4f19bd83aa8d2500d825ce63ae8770325b4a44e9.tar.gz infinity-for-reddit-4f19bd83aa8d2500d825ce63ae8770325b4a44e9.tar.bz2 infinity-for-reddit-4f19bd83aa8d2500d825ce63ae8770325b4a44e9.tar.lz infinity-for-reddit-4f19bd83aa8d2500d825ce63ae8770325b4a44e9.tar.xz infinity-for-reddit-4f19bd83aa8d2500d825ce63ae8770325b4a44e9.tar.zst infinity-for-reddit-4f19bd83aa8d2500d825ce63ae8770325b4a44e9.zip |
Add two options: go to user and go to subreddit in FABMoreOptionsBottomSheetFragment.
Diffstat (limited to '')
-rw-r--r-- | app/src/main/res/layout/dialog_go_to_thing_edit_text.xml | 10 | ||||
-rw-r--r-- | app/src/main/res/layout/fragment_fab_more_options_bottom_sheet.xml | 57 |
2 files changed, 67 insertions, 0 deletions
diff --git a/app/src/main/res/layout/dialog_go_to_thing_edit_text.xml b/app/src/main/res/layout/dialog_go_to_thing_edit_text.xml new file mode 100644 index 00000000..748376bf --- /dev/null +++ b/app/src/main/res/layout/dialog_go_to_thing_edit_text.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="utf-8"?> +<EditText xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:padding="24dp" + android:background="#00000000" + android:hint="@string/go_to_thing_hint" + android:textColor="?attr/primaryTextColor" + android:textSize="?attr/font_default" + android:fontFamily="?attr/font_family" />
\ No newline at end of file diff --git a/app/src/main/res/layout/fragment_fab_more_options_bottom_sheet.xml b/app/src/main/res/layout/fragment_fab_more_options_bottom_sheet.xml index fa7f9833..a209b863 100644 --- a/app/src/main/res/layout/fragment_fab_more_options_bottom_sheet.xml +++ b/app/src/main/res/layout/fragment_fab_more_options_bottom_sheet.xml @@ -106,6 +106,63 @@ android:focusable="true" android:background="?attr/selectableItemBackground" /> + <TextView + android:id="@+id/go_to_subreddit_text_view_fab_more_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/go_to_subreddit" + android:textColor="?attr/primaryTextColor" + android:textSize="?attr/font_default" + android:fontFamily="?attr/font_family" + app:drawableStartCompat="@drawable/ic_subreddit_24dp" + android:drawablePadding="48dp" + android:clickable="true" + android:focusable="true" + android:background="?attr/selectableItemBackground" /> + + <TextView + android:id="@+id/go_to_user_text_view_fab_more_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/go_to_user" + android:textColor="?attr/primaryTextColor" + android:textSize="?attr/font_default" + android:fontFamily="?attr/font_family" + app:drawableStartCompat="@drawable/ic_user_24dp" + android:drawablePadding="48dp" + android:clickable="true" + android:focusable="true" + android:background="?attr/selectableItemBackground" /> + + <TextView + android:id="@+id/random_text_view_fab_more_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/random" + android:textColor="?attr/primaryTextColor" + android:textSize="?attr/font_default" + android:fontFamily="?attr/font_family" + app:drawableStartCompat="@drawable/ic_random_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 |