From 43ae1259a231969ea3baeeb9e561c34c94495f50 Mon Sep 17 00:00:00 2001 From: Amine Date: Sun, 29 Dec 2024 21:56:56 +0100 Subject: [PATCH] fix: Displaying fixes. Fixes #155 --- androidApp/src/main/res/layout/card_item.xml | 11 ++++++++--- androidApp/src/main/res/layout/list_item.xml | 5 +++-- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/androidApp/src/main/res/layout/card_item.xml b/androidApp/src/main/res/layout/card_item.xml index b153220..c994c8a 100644 --- a/androidApp/src/main/res/layout/card_item.xml +++ b/androidApp/src/main/res/layout/card_item.xml @@ -43,7 +43,7 @@ android:id="@+id/sourceImage" android:layout_width="40dp" android:layout_height="40dp" - android:layout_marginStart="8dp" + android:layout_marginStart="16dp" android:layout_marginTop="8dp" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent" @@ -54,19 +54,24 @@ android:layout_width="0dp" android:layout_height="wrap_content" android:layout_margin="8dp" + android:layout_marginStart="8dp" + android:layout_marginTop="8dp" + android:layout_marginEnd="16dp" android:textAlignment="viewStart" android:textColor="?android:textColorPrimary" android:textStyle="bold" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toEndOf="@+id/sourceImage" - app:layout_constraintTop_toTopOf="@+id/sourceImage" + app:layout_constraintTop_toTopOf="parent" tools:text="Titre" /> diff --git a/androidApp/src/main/res/layout/list_item.xml b/androidApp/src/main/res/layout/list_item.xml index 9b66604..b127a7c 100644 --- a/androidApp/src/main/res/layout/list_item.xml +++ b/androidApp/src/main/res/layout/list_item.xml @@ -38,15 +38,16 @@ android:layout_width="0dp" android:layout_height="wrap_content" android:layout_marginStart="8dp" + android:layout_marginTop="16dp" android:layout_marginEnd="16dp" android:gravity="start" - android:maxLines="1" android:textAlignment="viewStart" android:textColor="?android:textColorPrimary" android:textSize="14sp" + app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toEndOf="@+id/itemImage" - app:layout_constraintTop_toBottomOf="@+id/itemImage" + app:layout_constraintTop_toBottomOf="@+id/title" tools:text="Google Actualité Il y a 5h" /> \ No newline at end of file