From 4c952d3dc69e1631a497bce3601fb0ada094716e Mon Sep 17 00:00:00 2001 From: Moez Bhatti Date: Mon, 12 Mar 2018 00:36:41 -0700 Subject: [PATCH] Use ConstraintLayout for conversation list item --- .../res/layout/conversation_list_item.xml | 80 +++++++++-------- .../layout/conversation_list_item_unread.xml | 88 +++++++++---------- 2 files changed, 85 insertions(+), 83 deletions(-) diff --git a/qksms/src/main/res/layout/conversation_list_item.xml b/qksms/src/main/res/layout/conversation_list_item.xml index cdba98f4..b0882893 100644 --- a/qksms/src/main/res/layout/conversation_list_item.xml +++ b/qksms/src/main/res/layout/conversation_list_item.xml @@ -17,7 +17,8 @@ ~ You should have received a copy of the GNU General Public License ~ along with QKSMS. If not, see . --> - + android:layout_gravity="top" + app:layout_constraintBottom_toBottomOf="parent" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toTopOf="parent" + app:layout_constraintVertical_bias="0" /> - + app:layout_constraintBottom_toTopOf="@id/snippet" + app:layout_constraintStart_toEndOf="@id/avatars" + app:layout_constraintTop_toTopOf="parent" + app:layout_constraintVertical_chainStyle="packed" + tools:text="@tools:sample/full_names" /> - + - + - - - - - - - - - \ No newline at end of file + \ No newline at end of file diff --git a/qksms/src/main/res/layout/conversation_list_item_unread.xml b/qksms/src/main/res/layout/conversation_list_item_unread.xml index c08cf242..dccbba1d 100644 --- a/qksms/src/main/res/layout/conversation_list_item_unread.xml +++ b/qksms/src/main/res/layout/conversation_list_item_unread.xml @@ -17,7 +17,7 @@ ~ You should have received a copy of the GNU General Public License ~ along with QKSMS. If not, see . --> - + android:layout_gravity="top" + app:layout_constraintBottom_toBottomOf="parent" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toTopOf="parent" + app:layout_constraintVertical_bias="0" /> - + android:textStyle="bold" + app:layout_constraintBottom_toTopOf="@id/snippet" + app:layout_constraintStart_toEndOf="@id/avatars" + app:layout_constraintTop_toTopOf="parent" + app:layout_constraintVertical_chainStyle="packed" + tools:text="@tools:sample/full_names" /> - + - + - - - - - - - - - \ No newline at end of file + \ No newline at end of file