From ba85b7036421370818b6f9a55d17d80d29d4ac5d Mon Sep 17 00:00:00 2001 From: Andy Scherzinger Date: Sat, 7 Dec 2024 17:34:29 +0100 Subject: [PATCH] style: Improve RTL support https://github.com/nextcloud/files-clients/issues/74 Signed-off-by: Andy Scherzinger --- .../main/res/layout/activity_list_item.xml | 2 +- .../layout/dialog_data_storage_location.xml | 4 +- app/src/main/res/layout/list_item.xml | 1 - .../res/layout/notification_list_item.xml | 52 ++++++++----------- app/src/main/res/layout/trashbin_item.xml | 4 +- app/src/main/res/layout/version_list_item.xml | 4 +- 6 files changed, 29 insertions(+), 38 deletions(-) diff --git a/app/src/main/res/layout/activity_list_item.xml b/app/src/main/res/layout/activity_list_item.xml index 7b90c84342..ad17d9e404 100644 --- a/app/src/main/res/layout/activity_list_item.xml +++ b/app/src/main/res/layout/activity_list_item.xml @@ -34,7 +34,7 @@ diff --git a/app/src/main/res/layout/list_item.xml b/app/src/main/res/layout/list_item.xml index 536940b0bf..d275c2b829 100644 --- a/app/src/main/res/layout/list_item.xml +++ b/app/src/main/res/layout/list_item.xml @@ -81,7 +81,6 @@ android:id="@+id/Filename" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_gravity="center_vertical" android:ellipsize="middle" android:singleLine="true" android:textColor="@color/text_color" diff --git a/app/src/main/res/layout/notification_list_item.xml b/app/src/main/res/layout/notification_list_item.xml index 369f67b11f..1419aafd5b 100644 --- a/app/src/main/res/layout/notification_list_item.xml +++ b/app/src/main/res/layout/notification_list_item.xml @@ -8,7 +8,7 @@ ~ SPDX-FileCopyrightText: 2018 Tobias Kaminsky ~ SPDX-License-Identifier: GPL-3.0-or-later AND AGPL-3.0-or-later --> - - - - - - - + android:ellipsize="end" + android:paddingBottom="@dimen/standard_half_padding" + android:textAppearance="?android:attr/textAppearanceListItem" + android:textColor="@color/text_color" + android:textSize="@dimen/txt_size_16sp" + tools:text="@string/placeholder_filename" /> - + + + diff --git a/app/src/main/res/layout/trashbin_item.xml b/app/src/main/res/layout/trashbin_item.xml index 3124e49dc4..4d248ffd8f 100644 --- a/app/src/main/res/layout/trashbin_item.xml +++ b/app/src/main/res/layout/trashbin_item.xml @@ -45,9 +45,9 @@ android:layout_height="wrap_content" android:ellipsize="middle" android:singleLine="true" - tools:text="@string/placeholder_filename" android:textColor="@color/text_color" - android:textSize="@dimen/two_line_primary_text_size"/> + android:textSize="@dimen/two_line_primary_text_size" + tools:text="@string/placeholder_filename" />