From cbed8f07cbacef7bc6d944f9f07961fcec771f72 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 | 7 ++++++- androidApp/src/main/res/layout/list_item.xml | 12 ++++++++---- 2 files changed, 14 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..ad94019 100644 --- a/androidApp/src/main/res/layout/card_item.xml +++ b/androidApp/src/main/res/layout/card_item.xml @@ -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="8dp" 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" /> @@ -20,7 +22,7 @@ android:layout_height="wrap_content" android:layout_marginStart="8dp" android:layout_marginTop="8dp" - android:layout_marginEnd="16dp" + android:layout_marginEnd="8dp" android:ellipsize="end" android:fontFamily="sans-serif" android:maxLines="3" @@ -38,15 +40,17 @@ android:layout_width="0dp" android:layout_height="wrap_content" android:layout_marginStart="8dp" - android:layout_marginEnd="16dp" + android:layout_marginTop="16dp" + android:layout_marginEnd="8dp" + android:layout_marginBottom="8dp" 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