mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-16 14:35:04 -05:00
Show as much of the folder name as possible in the navigation spinner
This commit is contained in:
parent
2b49338112
commit
9301e94e73
@ -9,12 +9,16 @@
|
|||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginBottom="-4dip"
|
android:layout_marginBottom="-4dip"
|
||||||
android:textSize="14sp" />
|
android:textSize="14sp"
|
||||||
|
android:singleLine="true"
|
||||||
|
android:ellipsize="start" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/actionbar_title_sub"
|
android:id="@+id/actionbar_title_sub"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:textSize="12sp" />
|
android:textSize="12sp"
|
||||||
|
android:singleLine="true"
|
||||||
|
android:ellipsize="end" />
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
@ -9,12 +9,16 @@
|
|||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginBottom="-4dip"
|
android:layout_marginBottom="-4dip"
|
||||||
android:textAppearance="?android:attr/textAppearanceMedium" />
|
android:textAppearance="?android:attr/textAppearanceMedium"
|
||||||
|
android:singleLine="true"
|
||||||
|
android:ellipsize="start" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/actionbar_title_sub"
|
android:id="@+id/actionbar_title_sub"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:textAppearance="?android:attr/textAppearanceSmall" />
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
||||||
|
android:singleLine="true"
|
||||||
|
android:ellipsize="end" />
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
@ -515,14 +515,7 @@ public class MessageList extends K9ListActivity implements
|
|||||||
private void setWindowTitle() {
|
private void setWindowTitle() {
|
||||||
// regular folder content display
|
// regular folder content display
|
||||||
if (mFolderName != null) {
|
if (mFolderName != null) {
|
||||||
|
mNavigationSpinner.setTitle(mFolderName);
|
||||||
String folderNameProc = mFolderName;
|
|
||||||
|
|
||||||
if (folderNameProc.length() > 15) {
|
|
||||||
folderNameProc = mFolderName.substring(0, 15) + "...";
|
|
||||||
}
|
|
||||||
|
|
||||||
mNavigationSpinner.setTitle(folderNameProc + " [" + mUnreadMessageCount + "]");
|
|
||||||
mNavigationSpinner.setSubTitle(mAccount.getEmail());
|
mNavigationSpinner.setSubTitle(mAccount.getEmail());
|
||||||
|
|
||||||
// query result display
|
// query result display
|
||||||
|
Loading…
Reference in New Issue
Block a user