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. --- .../CommentsListingRecyclerViewAdapter.java | 30 +++++++-- .../adapters/CommentsRecyclerViewAdapter.java | 19 +++++- app/src/main/res/layout/item_comment.xml | 75 ++++++++++++++-------- 3 files changed, 92 insertions(+), 32 deletions(-) diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/adapters/CommentsListingRecyclerViewAdapter.java b/app/src/main/java/ml/docilealligator/infinityforreddit/adapters/CommentsListingRecyclerViewAdapter.java index 33fd9075..5800244d 100644 --- a/app/src/main/java/ml/docilealligator/infinityforreddit/adapters/CommentsListingRecyclerViewAdapter.java +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/adapters/CommentsListingRecyclerViewAdapter.java @@ -369,6 +369,8 @@ public class CommentsListingRecyclerViewAdapter extends PagedListAdapter + 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