aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res/layout
diff options
context:
space:
mode:
authorAlex Ning <chineseperson5@gmail.com>2020-06-08 13:11:01 +0000
committerAlex Ning <chineseperson5@gmail.com>2020-06-08 13:11:01 +0000
commit0dbb6a745f519986e7033cd8a60dd0c055a559a4 (patch)
tree7cdc7a66ff7360733ad58f92e053ef62bd667983 /app/src/main/res/layout
parentb8e4ce6e1da367e0c26e5f1966394213427bdcb8 (diff)
downloadinfinity-for-reddit-0dbb6a745f519986e7033cd8a60dd0c055a559a4.tar
infinity-for-reddit-0dbb6a745f519986e7033cd8a60dd0c055a559a4.tar.gz
infinity-for-reddit-0dbb6a745f519986e7033cd8a60dd0c055a559a4.tar.bz2
infinity-for-reddit-0dbb6a745f519986e7033cd8a60dd0c055a559a4.tar.lz
infinity-for-reddit-0dbb6a745f519986e7033cd8a60dd0c055a559a4.tar.xz
infinity-for-reddit-0dbb6a745f519986e7033cd8a60dd0c055a559a4.tar.zst
infinity-for-reddit-0dbb6a745f519986e7033cd8a60dd0c055a559a4.zip
Move all bottom sheet fragments to package BottomSheetFragment. Add a UrlMenuBottomSheetFragment for future use.
Diffstat (limited to 'app/src/main/res/layout')
-rw-r--r--app/src/main/res/layout/fragment_copy_text_bottom_sheet.xml2
-rw-r--r--app/src/main/res/layout/fragment_post_comment_sort_type_bottom_sheet.xml2
-rw-r--r--app/src/main/res/layout/fragment_post_layot_bottom_sheet.xml2
-rw-r--r--app/src/main/res/layout/fragment_sort_time_bottom_sheet.xml2
-rw-r--r--app/src/main/res/layout/fragment_url_menu_bottom_sheet.xml68
5 files changed, 72 insertions, 4 deletions
diff --git a/app/src/main/res/layout/fragment_copy_text_bottom_sheet.xml b/app/src/main/res/layout/fragment_copy_text_bottom_sheet.xml
index 3d82d549..1e1e5394 100644
--- a/app/src/main/res/layout/fragment_copy_text_bottom_sheet.xml
+++ b/app/src/main/res/layout/fragment_copy_text_bottom_sheet.xml
@@ -5,7 +5,7 @@
android:layout_height="wrap_content"
android:paddingBottom="8dp"
android:overScrollMode="never"
- tools:context=".Fragment.SortTimeBottomSheetFragment">
+ tools:context=".BottomSheetFragment.CopyTextBottomSheetFragment">
<LinearLayout
android:layout_width="match_parent"
diff --git a/app/src/main/res/layout/fragment_post_comment_sort_type_bottom_sheet.xml b/app/src/main/res/layout/fragment_post_comment_sort_type_bottom_sheet.xml
index 23efa55e..1bbf20a0 100644
--- a/app/src/main/res/layout/fragment_post_comment_sort_type_bottom_sheet.xml
+++ b/app/src/main/res/layout/fragment_post_comment_sort_type_bottom_sheet.xml
@@ -4,7 +4,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:overScrollMode="never"
- tools:context=".Fragment.PostCommentSortTypeBottomSheetFragment">
+ tools:context=".BottomSheetFragment.PostCommentSortTypeBottomSheetFragment">
<LinearLayout
android:layout_width="match_parent"
diff --git a/app/src/main/res/layout/fragment_post_layot_bottom_sheet.xml b/app/src/main/res/layout/fragment_post_layot_bottom_sheet.xml
index bfe273f5..d5844678 100644
--- a/app/src/main/res/layout/fragment_post_layot_bottom_sheet.xml
+++ b/app/src/main/res/layout/fragment_post_layot_bottom_sheet.xml
@@ -5,7 +5,7 @@
android:layout_height="wrap_content"
android:paddingBottom="8dp"
android:overScrollMode="never"
- tools:context=".Fragment.PostLayoutBottomSheetFragment">
+ tools:context=".BottomSheetFragment.PostLayoutBottomSheetFragment">
<LinearLayout
android:layout_width="match_parent"
diff --git a/app/src/main/res/layout/fragment_sort_time_bottom_sheet.xml b/app/src/main/res/layout/fragment_sort_time_bottom_sheet.xml
index 1c0ab47b..23650b68 100644
--- a/app/src/main/res/layout/fragment_sort_time_bottom_sheet.xml
+++ b/app/src/main/res/layout/fragment_sort_time_bottom_sheet.xml
@@ -5,7 +5,7 @@
android:layout_height="wrap_content"
android:paddingBottom="8dp"
android:overScrollMode="never"
- tools:context=".Fragment.SortTimeBottomSheetFragment">
+ tools:context=".BottomSheetFragment.SortTimeBottomSheetFragment">
<LinearLayout
android:layout_width="match_parent"
diff --git a/app/src/main/res/layout/fragment_url_menu_bottom_sheet.xml b/app/src/main/res/layout/fragment_url_menu_bottom_sheet.xml
new file mode 100644
index 00000000..05ea66c9
--- /dev/null
+++ b/app/src/main/res/layout/fragment_url_menu_bottom_sheet.xml
@@ -0,0 +1,68 @@
+<?xml version="1.0" encoding="utf-8"?>
+<androidx.core.widget.NestedScrollView xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:tools="http://schemas.android.com/tools"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:paddingBottom="8dp"
+ android:overScrollMode="never"
+ tools:context=".BottomSheetFragment.UrlMenuBottomSheetFragment">
+
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:orientation="vertical">
+
+ <TextView
+ android:id="@+id/open_link_text_view_url_menu_bottom_sheet_fragment"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:text="@string/copy_raw_text"
+ android:textColor="?attr/primaryTextColor"
+ android:textSize="?attr/font_default"
+ android:paddingTop="16dp"
+ android:paddingBottom="16dp"
+ android:paddingStart="32dp"
+ android:paddingEnd="32dp"
+ android:drawableStart="@drawable/ic_open_link_24dp"
+ android:drawablePadding="48dp"
+ android:clickable="true"
+ android:focusable="true"
+ android:background="?attr/selectableItemBackground" />
+
+ <TextView
+ android:id="@+id/copy_link_text_view_url_menu_bottom_sheet_fragment"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:text="@string/copy_markdown"
+ android:textColor="?attr/primaryTextColor"
+ android:textSize="?attr/font_default"
+ android:paddingTop="16dp"
+ android:paddingBottom="16dp"
+ android:paddingStart="32dp"
+ android:paddingEnd="32dp"
+ android:drawableStart="@drawable/ic_copy_24dp"
+ android:drawablePadding="48dp"
+ android:clickable="true"
+ android:focusable="true"
+ android:background="?attr/selectableItemBackground" />
+
+ <TextView
+ android:id="@+id/share_link_text_view_url_menu_bottom_sheet_fragment"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:text="@string/copy_all_raw_text"
+ android:textColor="?attr/primaryTextColor"
+ android:textSize="?attr/font_default"
+ android:paddingTop="16dp"
+ android:paddingBottom="16dp"
+ android:paddingStart="32dp"
+ android:paddingEnd="32dp"
+ android:drawableStart="@drawable/ic_share_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