aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res
diff options
context:
space:
mode:
authorAlex Ning <chineseperson5@gmail.com>2020-09-14 01:06:31 +0000
committerAlex Ning <chineseperson5@gmail.com>2020-09-14 01:06:31 +0000
commitacaece6e3e63fba9f7a38899e3fb3079c9dd12c0 (patch)
tree102780f6c4de9353911aee3d342dd39f36ed0fee /app/src/main/res
parent4cf401756f4207ae43238cde1522d18d6824b6c4 (diff)
downloadinfinity-for-reddit-acaece6e3e63fba9f7a38899e3fb3079c9dd12c0.tar
infinity-for-reddit-acaece6e3e63fba9f7a38899e3fb3079c9dd12c0.tar.gz
infinity-for-reddit-acaece6e3e63fba9f7a38899e3fb3079c9dd12c0.tar.bz2
infinity-for-reddit-acaece6e3e63fba9f7a38899e3fb3079c9dd12c0.tar.lz
infinity-for-reddit-acaece6e3e63fba9f7a38899e3fb3079c9dd12c0.tar.xz
infinity-for-reddit-acaece6e3e63fba9f7a38899e3fb3079c9dd12c0.tar.zst
infinity-for-reddit-acaece6e3e63fba9f7a38899e3fb3079c9dd12c0.zip
Viewing comment's full markdown is available.
Diffstat (limited to 'app/src/main/res')
-rw-r--r--app/src/main/res/drawable-night/ic_full_markdown_24dp.xml9
-rw-r--r--app/src/main/res/drawable/ic_full_markdown_24dp.xml9
-rw-r--r--app/src/main/res/layout/activity_comment_full_markdown.xml42
-rw-r--r--app/src/main/res/layout/fragment_comment_more_bottom_sheet.xml19
-rw-r--r--app/src/main/res/values/strings.xml16
5 files changed, 81 insertions, 14 deletions
diff --git a/app/src/main/res/drawable-night/ic_full_markdown_24dp.xml b/app/src/main/res/drawable-night/ic_full_markdown_24dp.xml
new file mode 100644
index 00000000..bada8be1
--- /dev/null
+++ b/app/src/main/res/drawable-night/ic_full_markdown_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="M14,17L4,17v2h10v-2zM20,9L4,9v2h16L20,9zM4,15h16v-2L4,13v2zM4,5v2h16L20,5L4,5z"
+ android:fillColor="#FFFFFF"/>
+</vector>
diff --git a/app/src/main/res/drawable/ic_full_markdown_24dp.xml b/app/src/main/res/drawable/ic_full_markdown_24dp.xml
new file mode 100644
index 00000000..494d9579
--- /dev/null
+++ b/app/src/main/res/drawable/ic_full_markdown_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="M14,17L4,17v2h10v-2zM20,9L4,9v2h16L20,9zM4,15h16v-2L4,13v2zM4,5v2h16L20,5L4,5z"
+ android:fillColor="#000000"/>
+</vector>
diff --git a/app/src/main/res/layout/activity_comment_full_markdown.xml b/app/src/main/res/layout/activity_comment_full_markdown.xml
new file mode 100644
index 00000000..53ac6ea6
--- /dev/null
+++ b/app/src/main/res/layout/activity_comment_full_markdown.xml
@@ -0,0 +1,42 @@
+<?xml version="1.0" encoding="utf-8"?>
+<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:app="http://schemas.android.com/apk/res-auto"
+ xmlns:tools="http://schemas.android.com/tools"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:id="@+id/coordinator_layout_comment_full_markdown_activity"
+ tools:context=".Activity.CommentFullMarkdownActivity">
+
+ <com.google.android.material.appbar.AppBarLayout
+ android:id="@+id/appbar_layout_comment_full_markdown_activity"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:theme="@style/AppTheme.AppBarOverlay">
+
+ <com.google.android.material.appbar.CollapsingToolbarLayout
+ android:id="@+id/collapsing_toolbar_layout_comment_full_markdown_activity"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ app:layout_scrollFlags="scroll|enterAlways"
+ app:titleEnabled="false"
+ app:toolbarId="@+id/toolbar_comment_full_markdown_activity">
+
+ <androidx.appcompat.widget.Toolbar
+ android:id="@+id/toolbar_comment_full_markdown_activity"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:minHeight="?attr/actionBarSize"
+ app:popupTheme="@style/AppTheme.PopupOverlay"
+ app:navigationIcon="?attr/homeAsUpIndicator" />
+
+ </com.google.android.material.appbar.CollapsingToolbarLayout>
+
+ </com.google.android.material.appbar.AppBarLayout>
+
+ <androidx.recyclerview.widget.RecyclerView
+ android:id="@+id/content_markdown_view_comment_full_markdown_activity"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ app:layout_behavior="@string/appbar_scrolling_view_behavior" />
+
+</androidx.coordinatorlayout.widget.CoordinatorLayout> \ No newline at end of file
diff --git a/app/src/main/res/layout/fragment_comment_more_bottom_sheet.xml b/app/src/main/res/layout/fragment_comment_more_bottom_sheet.xml
index 5d8c86d0..6873171b 100644
--- a/app/src/main/res/layout/fragment_comment_more_bottom_sheet.xml
+++ b/app/src/main/res/layout/fragment_comment_more_bottom_sheet.xml
@@ -86,6 +86,25 @@
android:fontFamily="?attr/font_family" />
<TextView
+ android:id="@+id/view_full_markdown_text_view_comment_more_bottom_sheet_fragment"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:background="?attr/selectableItemBackground"
+ android:clickable="true"
+ android:drawableStart="@drawable/ic_full_markdown_24dp"
+ android:drawablePadding="48dp"
+ android:focusable="true"
+ android:gravity="center_vertical"
+ android:paddingStart="32dp"
+ android:paddingTop="16dp"
+ android:paddingEnd="32dp"
+ android:paddingBottom="16dp"
+ android:text="@string/view_full_comment_markdown"
+ android:textColor="?attr/primaryTextColor"
+ android:textSize="?attr/font_default"
+ android:fontFamily="?attr/font_family" />
+
+ <TextView
android:id="@+id/report_view_comment_more_bottom_sheet_fragment"
android:layout_width="match_parent"
android:layout_height="wrap_content"
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index f1801b33..0cb693f3 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -875,19 +875,7 @@
<string name="block_user">Block User</string>
<string name="block_user_success">Blocked</string>
<string name="block_user_failed">Failed to block user</string>
- <!-- Preference Titles -->
- <string name="messages_header">Messages</string>
- <string name="sync_header">Sync</string>
-
- <!-- Messages Preferences -->
- <string name="signature_title">Your signature</string>
- <string name="reply_title">Default reply action</string>
-
- <!-- Sync Preferences -->
- <string name="sync_title">Sync email periodically</string>
- <string name="attachment_title">Download incoming attachments</string>
- <string name="attachment_summary_on">Automatically download attachments for incoming emails
- </string>
- <string name="attachment_summary_off">Only download attachments when manually requested</string>
+
+ <string name="view_full_comment_markdown">View Full Markdown</string>
</resources>