aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res
diff options
context:
space:
mode:
authorAlex Ning <chineseperson5@gmail.com>2020-11-11 10:02:52 +0000
committerAlex Ning <chineseperson5@gmail.com>2020-11-11 10:02:52 +0000
commitaa8d0c49c18cf2e6b44f4ee9424742862f101825 (patch)
treed8ad8b86d1df1e6c43e1d76b2cb18b8a02cb1501 /app/src/main/res
parent441458b8b2ddae573bc5b473b46765c33e6feb56 (diff)
downloadinfinity-for-reddit-aa8d0c49c18cf2e6b44f4ee9424742862f101825.tar
infinity-for-reddit-aa8d0c49c18cf2e6b44f4ee9424742862f101825.tar.gz
infinity-for-reddit-aa8d0c49c18cf2e6b44f4ee9424742862f101825.tar.bz2
infinity-for-reddit-aa8d0c49c18cf2e6b44f4ee9424742862f101825.tar.lz
infinity-for-reddit-aa8d0c49c18cf2e6b44f4ee9424742862f101825.tar.xz
infinity-for-reddit-aa8d0c49c18cf2e6b44f4ee9424742862f101825.tar.zst
infinity-for-reddit-aa8d0c49c18cf2e6b44f4ee9424742862f101825.zip
Add an option to preview markdown in several activitys.
Diffstat (limited to '')
-rw-r--r--app/src/main/res/layout/activity_comment_full_markdown.xml2
-rw-r--r--app/src/main/res/menu/comment_activity.xml9
-rw-r--r--app/src/main/res/menu/edit_comment_activity.xml9
-rw-r--r--app/src/main/res/menu/edit_post_activity.xml9
-rw-r--r--app/src/main/res/menu/post_text_activity.xml9
5 files changed, 33 insertions, 5 deletions
diff --git a/app/src/main/res/layout/activity_comment_full_markdown.xml b/app/src/main/res/layout/activity_comment_full_markdown.xml
index 53ac6ea6..d0dc220c 100644
--- a/app/src/main/res/layout/activity_comment_full_markdown.xml
+++ b/app/src/main/res/layout/activity_comment_full_markdown.xml
@@ -5,7 +5,7 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/coordinator_layout_comment_full_markdown_activity"
- tools:context=".Activity.CommentFullMarkdownActivity">
+ tools:context=".Activity.FullMarkdownActivity">
<com.google.android.material.appbar.AppBarLayout
android:id="@+id/appbar_layout_comment_full_markdown_activity"
diff --git a/app/src/main/res/menu/comment_activity.xml b/app/src/main/res/menu/comment_activity.xml
index bed5b858..be0fd32f 100644
--- a/app/src/main/res/menu/comment_activity.xml
+++ b/app/src/main/res/menu/comment_activity.xml
@@ -2,8 +2,15 @@
<menu xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">
<item
- android:id="@+id/action_send_comment_activity"
+ android:id="@+id/action_preview_comment_activity"
android:orderInCategory="1"
+ android:title="@string/action_preview"
+ android:icon="@drawable/ic_preview_24dp"
+ app:showAsAction="ifRoom" />
+
+ <item
+ android:id="@+id/action_send_comment_activity"
+ android:orderInCategory="2"
android:title="@string/action_send"
android:icon="@drawable/ic_send_toolbar_24dp"
app:showAsAction="ifRoom" />
diff --git a/app/src/main/res/menu/edit_comment_activity.xml b/app/src/main/res/menu/edit_comment_activity.xml
index 97ef8af8..e79f54f6 100644
--- a/app/src/main/res/menu/edit_comment_activity.xml
+++ b/app/src/main/res/menu/edit_comment_activity.xml
@@ -2,8 +2,15 @@
<menu xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">
<item
- android:id="@+id/action_send_edit_comment_activity"
+ android:id="@+id/action_preview_edit_comment_activity"
android:orderInCategory="1"
+ android:title="@string/action_preview"
+ android:icon="@drawable/ic_preview_24dp"
+ app:showAsAction="ifRoom" />
+
+ <item
+ android:id="@+id/action_send_edit_comment_activity"
+ android:orderInCategory="2"
android:title="@string/action_send"
android:icon="@drawable/ic_send_toolbar_24dp"
app:showAsAction="ifRoom" />
diff --git a/app/src/main/res/menu/edit_post_activity.xml b/app/src/main/res/menu/edit_post_activity.xml
index 86ed3845..f6b161ee 100644
--- a/app/src/main/res/menu/edit_post_activity.xml
+++ b/app/src/main/res/menu/edit_post_activity.xml
@@ -2,8 +2,15 @@
<menu xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">
<item
- android:id="@+id/action_send_edit_post_activity"
+ android:id="@+id/action_preview_edit_post_activity"
android:orderInCategory="1"
+ android:title="@string/action_preview"
+ android:icon="@drawable/ic_preview_24dp"
+ app:showAsAction="ifRoom" />
+
+ <item
+ android:id="@+id/action_send_edit_post_activity"
+ android:orderInCategory="2"
android:title="@string/action_send"
android:icon="@drawable/ic_send_toolbar_24dp"
app:showAsAction="ifRoom" />
diff --git a/app/src/main/res/menu/post_text_activity.xml b/app/src/main/res/menu/post_text_activity.xml
index 23d9b6d6..66a9448b 100644
--- a/app/src/main/res/menu/post_text_activity.xml
+++ b/app/src/main/res/menu/post_text_activity.xml
@@ -2,8 +2,15 @@
<menu xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">
<item
- android:id="@+id/action_send_post_text_activity"
+ android:id="@+id/action_preview_post_text_activity"
android:orderInCategory="1"
+ android:title="@string/action_preview"
+ android:icon="@drawable/ic_preview_24dp"
+ app:showAsAction="ifRoom" />
+
+ <item
+ android:id="@+id/action_send_post_text_activity"
+ android:orderInCategory="2"
android:title="@string/action_send"
android:icon="@drawable/ic_send_toolbar_24dp"
app:showAsAction="ifRoom" />