aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res/layout
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--app/src/main/res/layout/item_comment.xml45
1 files changed, 32 insertions, 13 deletions
diff --git a/app/src/main/res/layout/item_comment.xml b/app/src/main/res/layout/item_comment.xml
index e64206d7..a97db526 100644
--- a/app/src/main/res/layout/item_comment.xml
+++ b/app/src/main/res/layout/item_comment.xml
@@ -24,35 +24,48 @@
android:paddingStart="16dp"
android:paddingEnd="16dp">
+ <ImageView
+ android:id="@+id/author_icon_image_view_item_post_comment"
+ android:layout_width="24dp"
+ android:layout_height="24dp"
+ android:visibility="gone"
+ app:layout_constraintHorizontal_bias="0"
+ app:layout_constraintBottom_toBottomOf="parent"
+ app:layout_constraintStart_toStartOf="parent"
+ app:layout_constraintTop_toTopOf="parent"
+ app:layout_constraintEnd_toStartOf="@id/barrier4" />
+
<TextView
android:id="@+id/author_text_view_item_post_comment"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
+ android:layout_marginStart="8dp"
android:layout_marginEnd="8dp"
android:drawablePadding="4dp"
- android:textSize="?attr/font_default"
android:fontFamily="?attr/font_family"
+ android:textSize="?attr/font_default"
+ app:layout_constrainedWidth="true"
app:layout_constraintBottom_toTopOf="@id/author_flair_text_view_item_post_comment"
+ app:layout_constraintStart_toEndOf="@id/author_icon_image_view_item_post_comment"
app:layout_constraintEnd_toStartOf="@+id/barrier"
- app:layout_constraintStart_toStartOf="parent"
- app:layout_constraintTop_toTopOf="parent"
- app:layout_constrainedWidth="true"
- app:layout_constraintHorizontal_bias="0" />
+ app:layout_constraintHorizontal_bias="0"
+ app:layout_constraintTop_toTopOf="parent" />
<TextView
android:id="@+id/author_flair_text_view_item_post_comment"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
+ android:layout_marginStart="8dp"
android:layout_marginEnd="8dp"
android:fontFamily="?attr/font_family"
android:textSize="?attr/font_12"
android:visibility="gone"
+ app:layout_constrainedWidth="true"
app:layout_constraintBottom_toBottomOf="parent"
+ app:layout_constraintStart_toEndOf="@id/author_icon_image_view_item_post_comment"
app:layout_constraintEnd_toStartOf="@+id/barrier"
app:layout_constraintHorizontal_bias="0"
- app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/author_text_view_item_post_comment"
- app:layout_constrainedWidth="true"
tools:visibility="visible" />
<TextView
@@ -60,9 +73,9 @@
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginEnd="8dp"
+ android:fontFamily="?attr/font_family"
android:gravity="end"
android:textSize="?attr/font_default"
- android:fontFamily="?attr/font_family"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toStartOf="@id/comment_time_text_view_item_post_comment"
app:layout_constraintTop_toTopOf="parent" />
@@ -71,9 +84,9 @@
android:id="@+id/comment_time_text_view_item_post_comment"
android:layout_width="0dp"
android:layout_height="wrap_content"
+ android:fontFamily="?attr/font_family"
android:gravity="end"
android:textSize="?attr/font_default"
- android:fontFamily="?attr/font_family"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent" />
@@ -85,6 +98,13 @@
app:barrierDirection="start"
app:constraint_referenced_ids="top_score_text_view_item_post_comment" />
+ <androidx.constraintlayout.widget.Barrier
+ android:id="@+id/barrier4"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ app:barrierDirection="start"
+ app:constraint_referenced_ids="author_text_view_item_post_comment,author_flair_text_view_item_post_comment" />
+
</androidx.constraintlayout.widget.ConstraintLayout>
<TextView
@@ -103,10 +123,9 @@
android:id="@+id/comment_markdown_view_item_post_comment"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:layout_marginTop="8dp"
- android:layout_marginStart="16dp"
- android:layout_marginEnd="16dp"
- android:layout_marginBottom="8dp"
+ android:layout_margin="8dp"
+ android:paddingStart="8dp"
+ android:paddingEnd="8dp"
android:textColor="?attr/primaryTextColor"
android:textSize="?attr/content_font_default"
android:fontFamily="?attr/content_font_family" />