aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res
diff options
context:
space:
mode:
Diffstat (limited to 'app/src/main/res')
-rw-r--r--app/src/main/res/drawable-night/ic_open_link_24dp.xml9
-rw-r--r--app/src/main/res/drawable/ic_open_link_24dp.xml9
-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
-rw-r--r--app/src/main/res/values/strings.xml2
8 files changed, 92 insertions, 4 deletions
diff --git a/app/src/main/res/drawable-night/ic_open_link_24dp.xml b/app/src/main/res/drawable-night/ic_open_link_24dp.xml
new file mode 100644
index 00000000..db3c9198
--- /dev/null
+++ b/app/src/main/res/drawable-night/ic_open_link_24dp.xml
@@ -0,0 +1,9 @@
+<vector xmlns:android="http://schemas.android.com/apk/res/android"
+ android:width="24dp"
+ android:height="24dp"
+ android:viewportWidth="24"
+ android:viewportHeight="24">
+ <path
+ android:pathData="M19,19H5V5h7V3H5c-1.11,0 -2,0.9 -2,2v14c0,1.1 0.89,2 2,2h14c1.1,0 2,-0.9 2,-2v-7h-2v7zM14,3v2h3.59l-9.83,9.83 1.41,1.41L19,6.41V10h2V3h-7z"
+ android:fillColor="#FFFFFF"/>
+</vector>
diff --git a/app/src/main/res/drawable/ic_open_link_24dp.xml b/app/src/main/res/drawable/ic_open_link_24dp.xml
new file mode 100644
index 00000000..48468b54
--- /dev/null
+++ b/app/src/main/res/drawable/ic_open_link_24dp.xml
@@ -0,0 +1,9 @@
+<vector xmlns:android="http://schemas.android.com/apk/res/android"
+ android:width="24dp"
+ android:height="24dp"
+ android:viewportWidth="24"
+ android:viewportHeight="24">
+ <path
+ android:pathData="M19,19H5V5h7V3H5c-1.11,0 -2,0.9 -2,2v14c0,1.1 0.89,2 2,2h14c1.1,0 2,-0.9 2,-2v-7h-2v7zM14,3v2h3.59l-9.83,9.83 1.41,1.41L19,6.41V10h2V3h-7z"
+ android:fillColor="#000000"/>
+</vector>
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
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index 7f313913..bdd8df76 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -754,5 +754,7 @@
<string name="downloading_reddit_video_failed_cannot_save_audio">Download failed: cannot save audio to cache directory</string>
<string name="downloading_reddit_video_failed_cannot_mux">Download failed: cannot mux video and audio</string>
<string name="downloading_reddit_video_failed_cannot_save_mux_video">Download failed: cannot save the video to public directory</string>
+ <!-- TODO: Remove or change this placeholder text -->
+ <string name="hello_blank_fragment">Hello blank fragment</string>
</resources>