mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-16 22:45:04 -05:00
- Changing the order of the date and subject TextViews in the XML file should fix the overlapping text issues
- Prettified message_list_item_touchable.xml Fixes issue 1350
This commit is contained in:
parent
55d70c3bf7
commit
bad67d5e17
@ -3,83 +3,80 @@
|
|||||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
android:layout_width="fill_parent"
|
android:layout_width="fill_parent"
|
||||||
android:layout_height="?android:attr/listPreferredItemHeight"
|
android:layout_height="?android:attr/listPreferredItemHeight"
|
||||||
android:background="#cccccc"
|
|
||||||
android:paddingTop="2dip"
|
android:paddingTop="2dip"
|
||||||
>
|
android:background="#ccc" >
|
||||||
|
|
||||||
<RelativeLayout
|
<RelativeLayout
|
||||||
android:id="@+id/chip"
|
android:id="@+id/chip"
|
||||||
android:background="@android:color/transparent"
|
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_marginRight="2dip"
|
|
||||||
android:layout_height="fill_parent"
|
android:layout_height="fill_parent"
|
||||||
android:layout_centerVertical="true"
|
android:layout_centerVertical="true"
|
||||||
android:layout_alignParentLeft="true"
|
android:layout_alignParentLeft="true"
|
||||||
>
|
android:layout_marginRight="2dip"
|
||||||
|
android:background="@android:color/transparent" >
|
||||||
|
|
||||||
<View
|
<View
|
||||||
android:layout_width="4dip"
|
android:layout_width="4dip"
|
||||||
android:layout_height="fill_parent"
|
android:layout_height="fill_parent" />
|
||||||
/>
|
|
||||||
<CheckBox
|
<CheckBox
|
||||||
android:id="@+id/selected_checkbox"
|
android:id="@+id/selected_checkbox"
|
||||||
android:layout_width="24dip"
|
android:layout_width="24dip"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:button="@drawable/checkbox"
|
|
||||||
android:layout_centerVertical="true"
|
android:layout_centerVertical="true"
|
||||||
android:layout_alignParentLeft="true"
|
android:layout_alignParentLeft="true"
|
||||||
|
android:button="@drawable/checkbox"
|
||||||
android:focusable="false"
|
android:focusable="false"
|
||||||
android:visibility="gone"
|
android:visibility="gone" />
|
||||||
/>
|
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
||||||
|
|
||||||
<CheckBox
|
<CheckBox
|
||||||
android:id="@+id/flagged"
|
android:id="@+id/flagged"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:focusable="false"
|
|
||||||
style="?android:attr/starStyle"
|
|
||||||
android:layout_alignParentRight="true"
|
android:layout_alignParentRight="true"
|
||||||
android:layout_alignParentBottom="true"
|
android:layout_alignParentBottom="true"
|
||||||
android:layout_gravity="bottom"
|
android:layout_gravity="bottom"
|
||||||
/>
|
style="?android:attr/starStyle"
|
||||||
<TextView
|
android:focusable="false" />
|
||||||
android:id="@+id/subject"
|
|
||||||
android:ellipsize="end"
|
|
||||||
android:singleLine="true"
|
|
||||||
android:textAppearance="?android:attr/textAppearanceSmall"
|
|
||||||
android:textColor="?android:attr/textColorPrimary"
|
|
||||||
android:layout_width="fill_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_marginLeft="1dip"
|
|
||||||
android:layout_toLeftOf="@id/date"
|
|
||||||
android:layout_toRightOf="@+id/chip"
|
|
||||||
android:layout_marginRight="1dip"
|
|
||||||
/>
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/date"
|
android:id="@+id/date"
|
||||||
android:textAppearance="?android:attr/textAppearanceSmall"
|
|
||||||
android:singleLine="true"
|
|
||||||
android:paddingLeft="5dip"
|
|
||||||
android:textColor="?android:attr/textColorSecondary"
|
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
android:layout_alignParentRight="true"
|
android:layout_alignParentRight="true"
|
||||||
android:layout_alignParentTop="true"
|
android:layout_alignParentTop="true"
|
||||||
|
android:paddingLeft="5dip"
|
||||||
|
android:singleLine="true"
|
||||||
|
android:textColor="?android:attr/textColorSecondary"
|
||||||
|
android:textAppearance="?android:attr/textAppearanceSmall" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/subject"
|
||||||
|
android:layout_width="fill_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:background="@android:color/transparent"
|
android:layout_toLeftOf="@id/date"
|
||||||
/>
|
android:layout_toRightOf="@+id/chip"
|
||||||
|
android:layout_marginLeft="1dip"
|
||||||
|
android:layout_marginRight="1dip"
|
||||||
|
android:singleLine="true"
|
||||||
|
android:ellipsize="end"
|
||||||
|
android:textColor="?android:attr/textColorPrimary"
|
||||||
|
android:textAppearance="?android:attr/textAppearanceSmall" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/preview"
|
android:id="@+id/preview"
|
||||||
android:layout_below="@id/subject"
|
|
||||||
android:layout_toRightOf="@id/chip"
|
|
||||||
android:textAppearance="?android:attr/textAppearanceSmall"
|
|
||||||
android:textColor="?android:attr/textColorTertiary"
|
|
||||||
android:singleLine="false"
|
|
||||||
android:layout_width="fill_parent"
|
android:layout_width="fill_parent"
|
||||||
android:layout_height="fill_parent"
|
android:layout_height="fill_parent"
|
||||||
android:layout_marginLeft="1dip"
|
android:layout_below="@id/subject"
|
||||||
android:layout_toLeftOf="@id/flagged"
|
android:layout_toLeftOf="@id/flagged"
|
||||||
|
android:layout_toRightOf="@id/chip"
|
||||||
|
android:layout_marginLeft="1dip"
|
||||||
android:layout_marginRight="0dip"
|
android:layout_marginRight="0dip"
|
||||||
|
android:singleLine="false"
|
||||||
android:bufferType="spannable"
|
android:bufferType="spannable"
|
||||||
/>
|
android:textColor="?android:attr/textColorTertiary"
|
||||||
|
android:textAppearance="?android:attr/textAppearanceSmall" />
|
||||||
|
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user