From e9944242e8dafd244d889f794db9743288b30440 Mon Sep 17 00:00:00 2001 From: Alex Ning Date: Tue, 3 Aug 2021 15:17:26 +0800 Subject: [PATCH] Optimize item_comment.xml. --- app/src/main/res/layout/item_comment.xml | 380 +++++++++++------------ 1 file changed, 186 insertions(+), 194 deletions(-) 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"> + + + + + + + app:barrierDirection="start" + app:constraint_referenced_ids="top_score_text_view_item_post_comment" /> - + + + + + + + + + android:padding="8dp" + android:background="?actionBarItemBackground" + android:clickable="true" + android:focusable="true" + android:src="@drawable/ic_arrow_upward_grey_24dp" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toTopOf="parent" + app:layout_constraintBottom_toBottomOf="parent" /> - + - + - + - + - + - + - + - - - - - +