1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-12-16 04:42:18 -05:00
k-9/res/layout/message_list_item.xml

99 lines
3.4 KiB
XML
Raw Normal View History

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:paddingRight="1dip"
android:paddingTop="2dip"
android:gravity="center_vertical"
android:background="#ccc" >
<RelativeLayout
android:id="@+id/chip"
android:layout_width="wrap_content"
2008-12-11 13:14:28 -05:00
android:layout_height="fill_parent"
android:minHeight="38dip"
android:layout_centerVertical="true"
android:layout_alignParentLeft="true"
android:layout_marginRight="2dip"
android:background="@android:color/transparent" >
<View
android:layout_width="6dip"
android:layout_height="fill_parent" />
<CheckBox
android:id="@+id/selected_checkbox"
android:layout_width="24dip"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:layout_alignParentLeft="true"
android:button="@drawable/checkbox"
android:focusable="false"
android:visibility="gone" />
</RelativeLayout>
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:orientation="vertical"
android:paddingLeft="6dip" >
<TextView
android:id="@+id/subject"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginRight="1dip"
android:gravity="center_vertical"
android:singleLine="true"
android:ellipsize="end"
android:textColor="?android:attr/textColorPrimary"
android:textAppearance="?android:attr/textAppearanceSmall" />
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="horizontal" >
<TextView
android:id="@+id/from"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:paddingLeft="2dip"
android:singleLine="true"
android:ellipsize="end"
android:textColor="?android:attr/textColorSecondary"
android:textAppearance="?android:attr/textAppearanceSmall" />
<TextView
android:id="@+id/date"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="right|bottom"
android:paddingRight="5dip"
android:paddingLeft="5dip"
android:singleLine="true"
android:textColor="?android:attr/textColorSecondary"
android:textAppearance="?android:attr/textAppearanceSmall" />
</LinearLayout>
</LinearLayout>
<CheckBox
android:id="@+id/flagged"
android:layout_height="20dip"
android:layout_width="20dip"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:layout_centerHorizontal="true"
android:layout_gravity="center_vertical"
android:button="@drawable/star"
android:focusable="false" />
</LinearLayout>