Show as much of the folder name as possible in the navigation spinner
This commit is contained in:
parent
2b49338112
commit
9301e94e73
3 changed files with 13 additions and 12 deletions
|
@ -9,12 +9,16 @@
|
|||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="-4dip"
|
||||
android:textSize="14sp" />
|
||||
android:textSize="14sp"
|
||||
android:singleLine="true"
|
||||
android:ellipsize="start" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/actionbar_title_sub"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textSize="12sp" />
|
||||
android:textSize="12sp"
|
||||
android:singleLine="true"
|
||||
android:ellipsize="end" />
|
||||
|
||||
</LinearLayout>
|
|
@ -9,12 +9,16 @@
|
|||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="-4dip"
|
||||
android:textAppearance="?android:attr/textAppearanceMedium" />
|
||||
android:textAppearance="?android:attr/textAppearanceMedium"
|
||||
android:singleLine="true"
|
||||
android:ellipsize="start" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/actionbar_title_sub"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textAppearance="?android:attr/textAppearanceSmall" />
|
||||
android:textAppearance="?android:attr/textAppearanceSmall"
|
||||
android:singleLine="true"
|
||||
android:ellipsize="end" />
|
||||
|
||||
</LinearLayout>
|
||||
|
|
|
@ -515,14 +515,7 @@ public class MessageList extends K9ListActivity implements
|
|||
private void setWindowTitle() {
|
||||
// regular folder content display
|
||||
if (mFolderName != null) {
|
||||
|
||||
String folderNameProc = mFolderName;
|
||||
|
||||
if (folderNameProc.length() > 15) {
|
||||
folderNameProc = mFolderName.substring(0, 15) + "...";
|
||||
}
|
||||
|
||||
mNavigationSpinner.setTitle(folderNameProc + " [" + mUnreadMessageCount + "]");
|
||||
mNavigationSpinner.setTitle(mFolderName);
|
||||
mNavigationSpinner.setSubTitle(mAccount.getEmail());
|
||||
|
||||
// query result display
|
||||
|
|
Loading…
Reference in a new issue