From e9944242e8dafd244d889f794db9743288b30440 Mon Sep 17 00:00:00 2001 From: Alex Ning Date: Tue, 3 Aug 2021 15:17:26 +0800 Subject: Optimize item_comment.xml. --- app/src/main/res/layout/item_comment.xml | 394 +++++++++++++++---------------- 1 file changed, 193 insertions(+), 201 deletions(-) (limited to 'app/src/main') diff --git a/app/src/main/res/layout/item_comment.xml b/app/src/main/res/layout/item_comment.xml index 1e4740eb..99572612 100644 --- a/app/src/main/res/layout/item_comment.xml +++ b/app/src/main/res/layout/item_comment.xml @@ -3,227 +3,219 @@ xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" - android:layout_height="wrap_content" - android:orientation="vertical" - android:background="?attr/cardViewBackgroundColor"> + android:layout_height="wrap_content"> + + - - + android:layout_height="wrap_content" + android:layout_marginTop="12dp" + android:orientation="vertical" + android:animateLayoutChanges="true"> - + android:paddingStart="16dp" + android:paddingEnd="16dp"> - - - - - - - - - - - - - + android:layout_marginEnd="8dp" + 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_toStartOf="parent" + app:layout_constraintTop_toTopOf="parent" + app:layout_constrainedWidth="true" + app:layout_constraintHorizontal_bias="0" /> + + + app:layout_constraintBottom_toBottomOf="parent" + app:layout_constraintEnd_toStartOf="@id/comment_time_text_view_item_post_comment" + app:layout_constraintTop_toTopOf="parent" /> + + - - + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - + android:padding="8dp" + android:background="?actionBarItemBackground" + android:clickable="true" + android:focusable="true" + android:src="@drawable/ic_arrow_downward_grey_24dp" + app:layout_constraintStart_toEndOf="@+id/score_text_view_item_post_comment" + app:layout_constraintEnd_toStartOf="@id/more_button_item_post_comment" + app:layout_constraintTop_toTopOf="parent" + app:layout_constraintBottom_toBottomOf="parent" + app:layout_constraintHorizontal_bias="0" /> + + + + + + + + + + + + -- cgit v1.2.3