aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res/layout/item_comment.xml
diff options
context:
space:
mode:
authorAlex Ning <chineseperson5@gmail.com>2020-07-09 14:29:22 +0000
committerAlex Ning <chineseperson5@gmail.com>2020-07-09 14:29:22 +0000
commit5020bf633fbfb0655e006da9dcf0028fe3370cbb (patch)
tree21924a5ed2ad36b4c6c360e4c9d85ccce7e7112e /app/src/main/res/layout/item_comment.xml
parent70264ee6321660414069cda09ce076eb007478d4 (diff)
downloadinfinity-for-reddit-5020bf633fbfb0655e006da9dcf0028fe3370cbb.tar
infinity-for-reddit-5020bf633fbfb0655e006da9dcf0028fe3370cbb.tar.gz
infinity-for-reddit-5020bf633fbfb0655e006da9dcf0028fe3370cbb.tar.bz2
infinity-for-reddit-5020bf633fbfb0655e006da9dcf0028fe3370cbb.tar.lz
infinity-for-reddit-5020bf633fbfb0655e006da9dcf0028fe3370cbb.tar.xz
infinity-for-reddit-5020bf633fbfb0655e006da9dcf0028fe3370cbb.tar.zst
infinity-for-reddit-5020bf633fbfb0655e006da9dcf0028fe3370cbb.zip
Fix username takes up too much space in comments. Add PostCompactRightLeftThumbnailViewHolder and PostCompactLeftThumbnailViewHolder in order to fix layout issues in ConstraintLayout v2.0.0-beta8. Rename 'Show Thumbnail on the Right in Compact Layout' to 'Show Thumbnail on the Left in Compact Layout'.
Diffstat (limited to '')
-rw-r--r--app/src/main/res/layout/item_comment.xml30
1 files changed, 11 insertions, 19 deletions
diff --git a/app/src/main/res/layout/item_comment.xml b/app/src/main/res/layout/item_comment.xml
index 6129a269..dee6d50c 100644
--- a/app/src/main/res/layout/item_comment.xml
+++ b/app/src/main/res/layout/item_comment.xml
@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
+ xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/linear_layout_item_comment"
android:layout_width="match_parent"
android:layout_height="wrap_content"
@@ -29,45 +30,36 @@
android:paddingStart="16dp"
android:paddingEnd="16dp">
- <ImageView
- android:id="@+id/author_type_image_view_item_comment"
- android:layout_width="?attr/font_default"
- android:layout_height="?attr/font_default"
- android:layout_marginEnd="4dp"
- android:visibility="gone"
- app:layout_constraintBottom_toTopOf="@id/author_flair_text_view_item_post_comment"
- app:layout_constraintEnd_toStartOf="@id/author_text_view_item_post_comment"
- app:layout_constraintStart_toStartOf="parent"
- app:layout_constraintTop_toTopOf="parent" />
-
<TextView
android:id="@+id/author_text_view_item_post_comment"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginEnd="8dp"
- android:ellipsize="end"
- android:maxLines="2"
+ android:drawablePadding="4dp"
android:textSize="?attr/font_default"
android:fontFamily="?attr/font_family"
app:layout_constraintBottom_toTopOf="@id/author_flair_text_view_item_post_comment"
app:layout_constraintEnd_toStartOf="@+id/barrier"
- app:layout_constraintStart_toEndOf="@id/author_type_image_view_item_comment"
- app:layout_constraintTop_toTopOf="parent" />
+ app:layout_constraintStart_toStartOf="parent"
+ app:layout_constraintTop_toTopOf="parent"
+ app:layout_constraintWidth_default="wrap"
+ app:layout_constraintHorizontal_bias="0" />
<TextView
android:id="@+id/author_flair_text_view_item_post_comment"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginEnd="8dp"
- android:ellipsize="end"
- android:maxLines="2"
- android:textSize="?attr/font_12"
android:fontFamily="?attr/font_family"
+ android:textSize="?attr/font_12"
android:visibility="gone"
app:layout_constraintBottom_toBottomOf="parent"
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_constraintTop_toBottomOf="@id/author_text_view_item_post_comment"
+ app:layout_constraintWidth_default="wrap"
+ tools:visibility="visible" />
<TextView
android:id="@+id/top_score_text_view_item_post_comment"