aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res/menu
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/menu
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 'app/src/main/res/menu')
-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
4 files changed, 32 insertions, 4 deletions
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" />