From 21d1c56e4d22465954de25f05ca9d20949e07adf Mon Sep 17 00:00:00 2001 From: AndyScherzinger Date: Mon, 7 Aug 2017 17:33:23 +0200 Subject: [PATCH] fix Combining Ellipsize and Maxlines (lint) --- src/main/res/layout/activity_row.xml | 2 +- src/main/res/layout/contactlist_list_item.xml | 2 +- src/main/res/layout/edit_share_layout.xml | 2 +- src/main/res/layout/file_details_share_user_item.xml | 2 +- src/main/res/layout/grid_item.xml | 3 +-- src/main/res/layout/list_item.xml | 2 +- .../res/layout/notification_with_progress_bar.xml | 4 ++-- src/main/res/layout/share_file_layout.xml | 2 +- src/main/res/layout/share_user_item.xml | 2 +- src/main/res/layout/sorting_order_fragment.xml | 12 ++++++------ .../res/layout/synced_folders_settings_layout.xml | 8 ++++---- src/main/res/layout/upload_list_item.xml | 6 +++--- src/main/res/layout/uploader_list_item_layout.xml | 2 +- 13 files changed, 24 insertions(+), 25 deletions(-) diff --git a/src/main/res/layout/activity_row.xml b/src/main/res/layout/activity_row.xml index f25e5a0bdd..ea8eabf035 100644 --- a/src/main/res/layout/activity_row.xml +++ b/src/main/res/layout/activity_row.xml @@ -50,7 +50,7 @@ android:layout_gravity="center_vertical" android:textAppearance="?android:attr/textAppearanceLargePopupMenu" android:duplicateParentState="true" - android:maxLines="1" + android:singleLine="true" android:ellipsize="marquee" android:fadingEdge="horizontal" /> diff --git a/src/main/res/layout/contactlist_list_item.xml b/src/main/res/layout/contactlist_list_item.xml index 6d5ad5ed38..48a6e1e16e 100644 --- a/src/main/res/layout/contactlist_list_item.xml +++ b/src/main/res/layout/contactlist_list_item.xml @@ -39,7 +39,7 @@ android:checkMark="?android:attr/listChoiceIndicatorMultiple" android:ellipsize="marquee" android:gravity="center_vertical" - android:maxLines="1" + android:singleLine="true" android:textAppearance="?android:attr/textAppearanceListItem"/> \ No newline at end of file diff --git a/src/main/res/layout/edit_share_layout.xml b/src/main/res/layout/edit_share_layout.xml index cd4a898c18..a1ecd73486 100644 --- a/src/main/res/layout/edit_share_layout.xml +++ b/src/main/res/layout/edit_share_layout.xml @@ -34,7 +34,7 @@ android:text="@string/share_with_edit_title" android:textAppearance="@style/TextAppearance.AppCompat.Title" android:padding="@dimen/standard_padding" - android:maxLines="1" + android:singleLine="true" android:ellipsize="middle" /> diff --git a/src/main/res/layout/file_details_share_user_item.xml b/src/main/res/layout/file_details_share_user_item.xml index 9c7fed9ca2..16f59de855 100644 --- a/src/main/res/layout/file_details_share_user_item.xml +++ b/src/main/res/layout/file_details_share_user_item.xml @@ -35,7 +35,7 @@ android:text="@string/username" android:id="@+id/userOrGroupName" android:layout_margin="12dp" - android:maxLines="1" + android:singleLine="true" android:ellipsize="middle" android:textColor="@color/black"/> diff --git a/src/main/res/layout/grid_item.xml b/src/main/res/layout/grid_item.xml index 4ae0df1980..ab2a0fd75e 100644 --- a/src/main/res/layout/grid_item.xml +++ b/src/main/res/layout/grid_item.xml @@ -1,4 +1,3 @@ -