mirror of
https://github.com/moparisthebest/k-9
synced 2024-12-26 09:38:52 -05:00
d5a2c6b5c7
This removes the default settings (ellipsized, single line) from the layout xml file and implements them programmatically. This fixes the problem where: You are viewing a folder list while wrapping is currently on, then you go into settings and turn wrapping off, after which you are back at the folder list, but the list is still wrapped.
52 lines
1.8 KiB
XML
52 lines
1.8 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<LinearLayout
|
|
android:id="@+id/folder_list_item_layout"
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="wrap_content"
|
|
android:minHeight="?android:attr/listPreferredItemHeight"
|
|
android:paddingRight="4dip"
|
|
android:paddingBottom="2dip"
|
|
android:orientation="horizontal"
|
|
android:gravity="center_vertical" >
|
|
|
|
<View
|
|
android:id="@+id/chip"
|
|
android:layout_width="32dip"
|
|
android:layout_height="32dip"
|
|
android:layout_marginTop="2dip"
|
|
android:layout_marginBottom="1dip"
|
|
android:layout_marginLeft="8dip"
|
|
android:layout_marginRight="6dip"
|
|
android:layout_centerVertical="true"
|
|
android:layout_alignParentLeft="true" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:orientation="vertical"
|
|
android:gravity="center_vertical"
|
|
android:paddingLeft="6dip" >
|
|
|
|
<TextView
|
|
android:id="@+id/folder_name"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="wrap_content"
|
|
android:textColor="?android:attr/textColorPrimary"
|
|
android:textAppearance="?android:attr/textAppearanceLarge" />
|
|
|
|
<TextView
|
|
android:id="@+id/folder_status"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="wrap_content"
|
|
android:singleLine="true"
|
|
android:ellipsize="end"
|
|
android:textColor="?android:attr/textColorTertiary"
|
|
android:textAppearance="?android:attr/textAppearanceSmall" />
|
|
|
|
</LinearLayout>
|
|
|
|
<include layout="@layout/accounts_folders_icons" />
|
|
</LinearLayout>
|