From 038f2664f1126607bd3dd9abdcf9b64c25c40a07 Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Fri, 1 Mar 2019 18:18:32 +0100 Subject: [PATCH] Improved conversations list UI --- app/src/main/res/drawable/ic_create.xml | 9 ++++ .../res/layout/fragment_conversationslist.xml | 50 ++++++++++++++----- 2 files changed, 46 insertions(+), 13 deletions(-) create mode 100644 app/src/main/res/drawable/ic_create.xml diff --git a/app/src/main/res/drawable/ic_create.xml b/app/src/main/res/drawable/ic_create.xml new file mode 100644 index 0000000..91aa951 --- /dev/null +++ b/app/src/main/res/drawable/ic_create.xml @@ -0,0 +1,9 @@ + + + diff --git a/app/src/main/res/layout/fragment_conversationslist.xml b/app/src/main/res/layout/fragment_conversationslist.xml index 6ef12dd..e486460 100644 --- a/app/src/main/res/layout/fragment_conversationslist.xml +++ b/app/src/main/res/layout/fragment_conversationslist.xml @@ -1,15 +1,23 @@ - + android:layout_gravity="center" + android:layout_marginStart="8dp" + android:layout_marginTop="8dp" + android:layout_marginEnd="8dp" + android:layout_marginBottom="8dp" + app:layout_constraintBottom_toBottomOf="parent" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toTopOf="parent" /> @@ -17,25 +25,41 @@ android:id="@+id/no_conversation_notice" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:text="@string/notice_no_conversation" android:layout_gravity="center" - android:layout_marginTop="10dp"/> + android:layout_marginStart="8dp" + android:layout_marginTop="8dp" + android:layout_marginEnd="8dp" + android:layout_marginBottom="8dp" + android:text="@string/notice_no_conversation" + app:layout_constraintBottom_toBottomOf="parent" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toTopOf="parent" /> + app:layout_constraintBottom_toBottomOf="parent" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toTopOf="parent" /> - -