From 26fe9b7757880e190fc0639f921abde4ccd0d984 Mon Sep 17 00:00:00 2001 From: Joe Steele Date: Mon, 26 Nov 2012 17:50:43 -0500 Subject: [PATCH] Create new preference option for wrapping folder names in folder list view. Revert to using an ellipsized folder name as the default. --- res/layout/folder_list_item.xml | 2 ++ res/values/strings.xml | 3 +++ res/xml/global_preferences.xml | 12 ++++++++++++ src/com/fsck/k9/K9.java | 10 ++++++++++ src/com/fsck/k9/activity/FolderList.java | 4 ++++ src/com/fsck/k9/activity/setup/Prefs.java | 6 ++++++ src/com/fsck/k9/preferences/GlobalSettings.java | 3 +++ 7 files changed, 40 insertions(+) diff --git a/res/layout/folder_list_item.xml b/res/layout/folder_list_item.xml index 8cd6d580d..1050de2a9 100644 --- a/res/layout/folder_list_item.xml +++ b/res/layout/folder_list_item.xml @@ -33,6 +33,8 @@ android:id="@+id/folder_name" android:layout_width="fill_parent" android:layout_height="wrap_content" + android:singleLine="true" + android:ellipsize="start" android:textColor="?android:attr/textColorPrimary" android:textAppearance="?android:attr/textAppearanceLarge" /> diff --git a/res/values/strings.xml b/res/values/strings.xml index 44e80e7ad..5339db35f 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -322,6 +322,8 @@ Please submit bug reports, contribute new features and ask questions at Colorize contacts Don\'t colorize names in your contact list Colorize names in your contact list + Wrap folder names + Show complete folder name wrapped on multiple lines rather than a partial name on a single line Fixed-width fonts Use a fixed-width font when showing plain-text messages @@ -812,6 +814,7 @@ Please submit bug reports, contribute new features and ask questions at Account list Message lists Messages + Folder lists Theme Language diff --git a/res/xml/global_preferences.xml b/res/xml/global_preferences.xml index 75efa5598..cb90924ea 100644 --- a/res/xml/global_preferences.xml +++ b/res/xml/global_preferences.xml @@ -176,6 +176,18 @@ + + + + + +