From a904ca359d26377fedcf408a7c37080bd7f4d9b1 Mon Sep 17 00:00:00 2001 From: davidoskky Date: Sat, 28 Jan 2023 01:22:32 +0100 Subject: [PATCH] Clean up and improve RTL in home layout --- .../src/main/res/layout/activity_home.xml | 22 ++++---- androidApp/src/main/res/layout/card_item.xml | 51 ++++++++----------- androidApp/src/main/res/layout/list_item.xml | 26 +++------- 3 files changed, 42 insertions(+), 57 deletions(-) diff --git a/androidApp/src/main/res/layout/activity_home.xml b/androidApp/src/main/res/layout/activity_home.xml index 5debd59..7d0cbc9 100644 --- a/androidApp/src/main/res/layout/activity_home.xml +++ b/androidApp/src/main/res/layout/activity_home.xml @@ -1,13 +1,12 @@ - + tools:context="bou.amine.apps.readerforselfossv2.android.HomeActivity"> - + /> @@ -45,19 +46,19 @@ + android:background="?android:attr/windowBackground" + android:orientation="vertical"> + tools:listitem="@layout/list_item" /> @@ -77,6 +78,7 @@ + - @@ -39,8 +35,8 @@ android:layout_width="0dp" android:layout_height="wrap_content" app:layout_constraintBottom_toBottomOf="parent" - app:layout_constraintLeft_toLeftOf="parent" - app:layout_constraintRight_toRightOf="parent" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@+id/itemImage"> @@ -57,40 +53,35 @@ android:id="@+id/title" android:layout_width="0dp" android:layout_height="wrap_content" - android:layout_marginEnd="8dp" - android:layout_marginLeft="8dp" - android:layout_marginRight="8dp" - android:layout_marginStart="8dp" - android:gravity="start" + android:layout_margin="8dp" android:textAlignment="viewStart" - android:textStyle="bold" android:textColor="?android:textColorPrimary" - app:layout_constraintHorizontal_bias="0.0" - app:layout_constraintLeft_toRightOf="@+id/sourceImage" - app:layout_constraintRight_toRightOf="parent" + android:textStyle="bold" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintStart_toEndOf="@+id/sourceImage" app:layout_constraintTop_toTopOf="@+id/sourceImage" tools:text="Titre" /> - diff --git a/androidApp/src/main/res/layout/list_item.xml b/androidApp/src/main/res/layout/list_item.xml index 6f3bef8..8e36b3b 100644 --- a/androidApp/src/main/res/layout/list_item.xml +++ b/androidApp/src/main/res/layout/list_item.xml @@ -3,17 +3,16 @@ xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" - android:layout_height="88dp"> + android:layout_height="wrap_content"> + app:layout_constraintTop_toTopOf="parent" /> + tools:text="Titre" /> + app:layout_constraintTop_toBottomOf="@+id/itemImage" + tools:text="Google Actualité Il y a 5h" /> \ No newline at end of file