aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res/layout/activity_comment.xml
diff options
context:
space:
mode:
authorSergei Kozelko <KozelkoS@yandex.ru>2022-09-21 05:23:00 +0000
committerGitHub <noreply@github.com>2022-09-21 05:23:00 +0000
commit3e66a4fda78109dca680619b5324e0b96cf650c5 (patch)
tree0863e059b512bb75d07177e1db67a10ed5a676eb /app/src/main/res/layout/activity_comment.xml
parent76c7e9e5451b973749c3ffa3ef1cf9e7895584a4 (diff)
downloadinfinity-for-reddit-3e66a4fda78109dca680619b5324e0b96cf650c5.tar
infinity-for-reddit-3e66a4fda78109dca680619b5324e0b96cf650c5.tar.gz
infinity-for-reddit-3e66a4fda78109dca680619b5324e0b96cf650c5.tar.bz2
infinity-for-reddit-3e66a4fda78109dca680619b5324e0b96cf650c5.tar.lz
infinity-for-reddit-3e66a4fda78109dca680619b5324e0b96cf650c5.tar.xz
infinity-for-reddit-3e66a4fda78109dca680619b5324e0b96cf650c5.tar.zst
infinity-for-reddit-3e66a4fda78109dca680619b5324e0b96cf650c5.zip
Fix reply markdown (#1098)
* Display comment body the same way as post body when replying There are two views that support markdown, one of them was used to display post titles and comments, the other - post bodies. The views are configured differently even though post and comment bodies should be displayed the same way. Now post and comment bodies are displayed by the same view. * Rename extra keys from TEXT to TITLE Now these extra keys are used only by post title, reflect this in the name. * Remove markdown support from post title view * Fix reply styling Co-authored-by: Docile-Alligator <25734209+Docile-Alligator@users.noreply.github.com>
Diffstat (limited to '')
-rw-r--r--app/src/main/res/layout/activity_comment.xml8
1 files changed, 6 insertions, 2 deletions
diff --git a/app/src/main/res/layout/activity_comment.xml b/app/src/main/res/layout/activity_comment.xml
index 7087b13f..4c685720 100644
--- a/app/src/main/res/layout/activity_comment.xml
+++ b/app/src/main/res/layout/activity_comment.xml
@@ -37,15 +37,19 @@
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
+ android:paddingTop="16dp"
android:orientation="vertical">
<TextView
+ android:id="@+id/comment_parent_title_text_view"
android:id="@+id/comment_comment_parent_markwon_view"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:layout_margin="16dp"
+ android:layout_marginHorizontal="16dp"
+ android:layout_marginBottom="16dp"
android:textSize="?attr/title_font_16"
- android:fontFamily="?attr/content_font_family" />
+ android:fontFamily="?attr/title_font_family"
+ android:visibility="gone" />
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/comment_content_markdown_view"