From de105359f90753828836dbe6181d45558a905bc3 Mon Sep 17 00:00:00 2001 From: Alex Ning Date: Fri, 21 Jan 2022 15:44:49 +0800 Subject: Fix views in comment toolbar overlapping each other. --- app/src/main/res/layout/item_comment.xml | 75 +++++++++++++++++++++----------- 1 file changed, 50 insertions(+), 25 deletions(-) (limited to 'app/src/main/res/layout') diff --git a/app/src/main/res/layout/item_comment.xml b/app/src/main/res/layout/item_comment.xml index e087c087..e64206d7 100644 --- a/app/src/main/res/layout/item_comment.xml +++ b/app/src/main/res/layout/item_comment.xml @@ -122,96 +122,121 @@ android:id="@+id/up_vote_button_item_post_comment" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:padding="8dp" android:background="?actionBarItemBackground" android:clickable="true" android:focusable="true" + android:padding="8dp" android:src="@drawable/ic_arrow_upward_grey_24dp" + app:layout_constraintHorizontal_chainStyle="spread_inside" + app:layout_constraintBottom_toBottomOf="parent" + app:layout_constraintEnd_toStartOf="@+id/score_text_view_item_post_comment" + app:layout_constraintHorizontal_bias="0.5" app:layout_constraintStart_toStartOf="parent" - app:layout_constraintTop_toTopOf="parent" - app:layout_constraintBottom_toBottomOf="parent" /> + app:layout_constraintTop_toTopOf="parent" /> + app:layout_constraintTop_toTopOf="parent" /> + + + app:layout_constraintEnd_toStartOf="@+id/more_button_item_post_comment" + app:layout_constraintHorizontal_bias="0.5" + app:layout_constraintStart_toEndOf="@+id/down_vote_button_item_post_comment" + app:layout_constraintTop_toTopOf="parent" /> + app:layout_constraintHorizontal_bias="0.5" + app:layout_constraintStart_toEndOf="@+id/placeholder_item_post_comment" + app:layout_constraintTop_toTopOf="parent" /> + app:layout_constraintHorizontal_bias="0.5" + app:layout_constraintStart_toEndOf="@+id/more_button_item_post_comment" + app:layout_constraintTop_toTopOf="parent" /> + app:layout_constraintHorizontal_bias="0.5" + app:layout_constraintStart_toEndOf="@+id/expand_button_item_post_comment" + app:layout_constraintTop_toTopOf="parent" /> + app:layout_constraintHorizontal_bias="0.5" + app:layout_constraintStart_toEndOf="@+id/save_button_item_post_comment" + app:layout_constraintTop_toTopOf="parent" /> -- cgit v1.2.3