aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res
diff options
context:
space:
mode:
authorAlex Ning <chineseperson5@gmail.com>2021-07-08 01:00:49 +0000
committerAlex Ning <chineseperson5@gmail.com>2021-07-08 01:00:49 +0000
commit61d907308cd0944e99ef61cf6d2abe77f988e357 (patch)
tree4975b061684c31ab922b44bb75bce0926bb49c47 /app/src/main/res
parent6eecaaccfa358d0dfd9ef3b514db5faad9c96edd (diff)
downloadinfinity-for-reddit-61d907308cd0944e99ef61cf6d2abe77f988e357.tar
infinity-for-reddit-61d907308cd0944e99ef61cf6d2abe77f988e357.tar.gz
infinity-for-reddit-61d907308cd0944e99ef61cf6d2abe77f988e357.tar.bz2
infinity-for-reddit-61d907308cd0944e99ef61cf6d2abe77f988e357.tar.lz
infinity-for-reddit-61d907308cd0944e99ef61cf6d2abe77f988e357.tar.xz
infinity-for-reddit-61d907308cd0944e99ef61cf6d2abe77f988e357.tar.zst
infinity-for-reddit-61d907308cd0944e99ef61cf6d2abe77f988e357.zip
Share rpan post url and rpan url. Show rpan post title in ViewRPANBroadcastFragment.
Diffstat (limited to '')
-rw-r--r--app/src/main/res/layout/exo_rpan_broadcast_playback_control_view.xml11
-rw-r--r--app/src/main/res/layout/item_rpan_comment.xml2
-rw-r--r--app/src/main/res/menu/rpan_activity.xml15
-rw-r--r--app/src/main/res/values/strings.xml2
4 files changed, 29 insertions, 1 deletions
diff --git a/app/src/main/res/layout/exo_rpan_broadcast_playback_control_view.xml b/app/src/main/res/layout/exo_rpan_broadcast_playback_control_view.xml
index 9ee2582f..e0d11e64 100644
--- a/app/src/main/res/layout/exo_rpan_broadcast_playback_control_view.xml
+++ b/app/src/main/res/layout/exo_rpan_broadcast_playback_control_view.xml
@@ -7,6 +7,17 @@
android:focusableInTouchMode="true"
xmlns:app="http://schemas.android.com/apk/res-auto">
+ <TextView
+ android:id="@+id/title_text_view_exo_rpan_broadcast_playback_control_view"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:padding="16dp"
+ android:textColor="#FFFFFF"
+ android:textSize="20sp"
+ app:layout_constraintTop_toTopOf="parent"
+ app:layout_constraintBottom_toTopOf="@id/control_linear_layout"
+ app:layout_constraintVertical_bias="1" />
+
<LinearLayout
android:id="@+id/control_linear_layout"
android:layout_width="match_parent"
diff --git a/app/src/main/res/layout/item_rpan_comment.xml b/app/src/main/res/layout/item_rpan_comment.xml
index 97f8969f..54ace9c5 100644
--- a/app/src/main/res/layout/item_rpan_comment.xml
+++ b/app/src/main/res/layout/item_rpan_comment.xml
@@ -3,7 +3,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
- android:paddingBottom="8dp">
+ android:layout_marginBottom="8dp">
<ImageView
android:id="@+id/icon_image_view_item_rpan_comment"
diff --git a/app/src/main/res/menu/rpan_activity.xml b/app/src/main/res/menu/rpan_activity.xml
new file mode 100644
index 00000000..bb165fd4
--- /dev/null
+++ b/app/src/main/res/menu/rpan_activity.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="utf-8"?>
+<menu xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:app="http://schemas.android.com/apk/res-auto">
+ <item
+ android:id="@+id/action_share_rpan_link_rpan_activity"
+ android:orderInCategory="1"
+ android:title="@string/action_share_rpan_link"
+ app:showAsAction="never" />
+
+ <item
+ android:id="@+id/action_share_post_link_rpan_activity"
+ android:orderInCategory="1"
+ android:title="@string/action_share_post_link"
+ app:showAsAction="never" />
+</menu> \ 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 1d6753ba..c095dfc0 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -84,6 +84,8 @@
<string name="action_copy_link">Copy Link</string>
<string name="action_add_to_post_filter">Add to Post Filter</string>
<string name="action_delete_logs">Delete Logs</string>
+ <string name="action_share_rpan_link">Share RPAN Link</string>
+ <string name="action_share_post_link">Share Post Link</string>
<string name="parse_json_response_error">Error occurred when parsing the JSON response</string>
<string name="retrieve_token_error">Error Retrieving the token</string>