From 5c744d2f188026dcfa82dcc57da80901cc494493 Mon Sep 17 00:00:00 2001 From: davidoskky Date: Fri, 27 Jan 2023 20:00:43 +0100 Subject: [PATCH 1/5] Clean up and improve RTL in sources list Adapted the layout for LTR, in LTR the title is always aligned on the right while the error depends on the language. Gave more prominence to the title text and set the error to italic. --- .../src/main/res/layout/activity_sources.xml | 3 +- .../src/main/res/layout/source_list_item.xml | 30 +++++++++---------- 2 files changed, 17 insertions(+), 16 deletions(-) diff --git a/androidApp/src/main/res/layout/activity_sources.xml b/androidApp/src/main/res/layout/activity_sources.xml index d5dc234..6b8418c 100644 --- a/androidApp/src/main/res/layout/activity_sources.xml +++ b/androidApp/src/main/res/layout/activity_sources.xml @@ -24,7 +24,8 @@ android:layout_width="match_parent" android:layout_height="match_parent" android:scrollbars="vertical" - app:layout_behavior="@string/appbar_scrolling_view_behavior"> + app:layout_behavior="@string/appbar_scrolling_view_behavior" + tools:listitem="@layout/source_list_item"> + tools:text="Source title" /> \ No newline at end of file -- 2.34.1 From a93bd45f0daef080415b6347289f36e66f63da4c Mon Sep 17 00:00:00 2001 From: davidoskky Date: Fri, 27 Jan 2023 20:33:23 +0100 Subject: [PATCH 2/5] Clean up upsert source activity layout --- .../res/layout/activity_upsert_source.xml | 81 +++++++------------ 1 file changed, 31 insertions(+), 50 deletions(-) diff --git a/androidApp/src/main/res/layout/activity_upsert_source.xml b/androidApp/src/main/res/layout/activity_upsert_source.xml index 547b88c..b2ed65b 100644 --- a/androidApp/src/main/res/layout/activity_upsert_source.xml +++ b/androidApp/src/main/res/layout/activity_upsert_source.xml @@ -17,100 +17,83 @@ + android:layout_height="?attr/actionBarSize" /> + app:layout_constraintLeft_toLeftOf="parent" + app:layout_constraintTop_toTopOf="parent"> + app:layout_constraintTop_toBottomOf="@+id/nameInput" /> + android:textColorHint="?android:textColorPrimary" + app:layout_constraintLeft_toLeftOf="parent" + app:layout_constraintTop_toBottomOf="@+id/sourceUri" /> + app:layout_constraintTop_toBottomOf="@+id/tags" />