1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-10 19:45:05 -05:00
k-9/res/layout-land/message_list_item.xml
2012-08-06 17:08:49 -07:00

74 lines
2.8 KiB
XML

<?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="fill_parent"
android:paddingRight="1dip"
android:background="#cccccc" >
<CheckBox
android:id="@+id/flagged"
android:focusable="false"
android:button="@drawable/star"
android:layout_marginRight="5dip"
android:layout_gravity="center_vertical"
android:layout_height="20dip"
android:layout_width="23dip"
android:layout_alignParentRight="true" />
<RelativeLayout
android:id="@+id/chip"
android:background="@android:color/transparent"
android:layout_width="wrap_content"
android:layout_marginRight="2dip"
android:layout_height="20dip"
android:layout_centerVertical="true"
android:layout_alignParentLeft="true" >
<CheckBox
android:id="@+id/selected_checkbox"
android:layout_width="12dip"
android:layout_height="wrap_content"
android:button="@drawable/checkbox_small"
android:layout_centerVertical="true"
android:layout_alignParentLeft="true"
android:focusable="false"
android:visibility="gone" />
<View
android:layout_width="4dip"
android:layout_height="fill_parent" />
</RelativeLayout>
<TextView
android:id="@+id/date"
android:textAppearance="?android:attr/textAppearanceSmall"
android:singleLine="true"
android:textColor="?android:attr/textColorPrimary"
android:layout_width="70dip"
android:paddingRight="3dip"
android:layout_height="wrap_content"
android:gravity="right"
android:layout_alignWithParentIfMissing="true"
android:layout_toLeftOf="@+id/flagged" />
<TextView
android:id="@+id/from"
android:ellipsize="end"
android:singleLine="true"
android:layout_width="110dip"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceSmall"
android:textColor="?android:attr/textColorSecondary"
android:paddingLeft="3dip"
android:paddingRight="3dip"
android:layout_toLeftOf="@+id/date" />
<TextView
android:id="@+id/subject"
android:ellipsize="marquee"
android:singleLine="true"
android:textAppearance="?android:attr/textAppearanceSmall"
android:textColor="?android:attr/textColorPrimary"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingLeft="10dip"
android:layout_marginRight="1dip"
android:layout_alignWithParentIfMissing="true"
android:layout_toRightOf="@+id/chip"
android:layout_toLeftOf="@+id/from" />
</RelativeLayout>