1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-13 21:15:08 -05:00
k-9/res/layout/message_list_item.xml

107 lines
3.8 KiB
XML
Raw Normal View History

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:paddingBottom="2dip"
android:paddingRight="3dip"
android:paddingTop="5dip" >
<RelativeLayout
2012-09-13 00:31:21 -04:00
android:id="@+id/chip_wrapper"
android:layout_width="36dip"
android:layout_height="fill_parent"
android:layout_alignParentLeft="true"
android:textColor="?android:attr/textColorPrimary" >
<View
android:id="@+id/chip"
android:layout_width="16dip"
android:layout_height="16dip"
android:layout_alignParentTop="true"
android:layout_marginTop="3dip"
2012-09-13 00:31:21 -04:00
android:gravity="center"
android:layout_marginLeft="10dip"
android:layout_marginRight="10dip"
android:background="@android:color/transparent" />
2012-09-13 00:31:21 -04:00
<CheckBox
android:id="@+id/selected_checkbox"
android:layout_width="36dip"
android:layout_below="@+id/chip"
android:layout_height="fill_parent"
android:focusable="false"
android:gravity="bottom|center"
android:visibility="visible" />
</RelativeLayout>
<TextView
android:id="@+id/subject"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_marginBottom="1dip"
android:layout_marginLeft="1dip"
android:layout_toLeftOf="@+id/date"
2012-09-13 00:31:21 -04:00
android:layout_toRightOf="@+id/chip_wrapper"
android:ellipsize="marquee"
android:singleLine="true"
android:textAppearance="?android:attr/textAppearanceSmall"
android:textColor="?android:attr/textColorPrimary" />
<TextView
android:id="@+id/preview"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
2012-09-13 00:31:21 -04:00
android:layout_toRightOf="@+id/chip_wrapper"
android:layout_below="@+id/subject"
android:layout_marginLeft="1dip"
android:layout_marginBottom="3dip"
android:layout_marginRight="16dip"
android:layout_toLeftOf="@+id/flagged"
android:bufferType="spannable"
android:singleLine="false"
android:textAppearance="?android:attr/textAppearanceSmall"
android:textColor="?android:attr/textColorPrimary" />
<TextView
android:id="@+id/date"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignTop="@+id/subject"
android:layout_alignParentRight="true"
android:paddingLeft="3dip"
android:layout_marginRight="2dip"
android:singleLine="true"
android:textAppearance="?android:attr/textAppearanceSmall"
android:textColor="?android:attr/textColorSecondary" />
<CheckBox
android:id="@+id/flagged"
android:button="@drawable/star"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/date"
android:layout_alignParentRight="true"
android:layout_marginTop="3dip"
android:layout_marginLeft="0dip"
android:layout_marginRight="12dip"
android:focusable="false"
/>
<!-- This comes after the flagged checkbox so that it layers on top and gets
clicks first -->
<com.fsck.k9.view.ImageButtonAnchor
android:id="@+id/item_menu"
android:layout_width="30dp"
android:layout_height="fill_parent"
android:gravity="bottom|right"
android:layout_marginBottom="0dip"
android:layout_alignParentRight="true"
android:layout_alignParentBottom="true"
android:background="@null"
style="?android:attr/borderlessButtonStyle"
android:src="?attr/iconListItemMenu" />
</RelativeLayout>