2012-02-20 22:56:05 -05:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<com.fsck.k9.view.MessageHeader
|
2013-02-08 21:22:23 -05:00
|
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
android:id="@+id/header_container"
|
2013-02-04 07:23:44 -05:00
|
|
|
android:layout_width="match_parent"
|
2013-02-08 21:22:23 -05:00
|
|
|
android:layout_height="wrap_content">
|
2012-02-20 22:56:05 -05:00
|
|
|
|
2013-02-08 21:22:23 -05:00
|
|
|
<LinearLayout
|
2013-02-04 07:23:44 -05:00
|
|
|
android:layout_width="match_parent"
|
2012-02-20 22:56:05 -05:00
|
|
|
android:layout_height="wrap_content"
|
2013-02-08 21:22:23 -05:00
|
|
|
android:orientation="vertical">
|
2013-02-11 04:48:49 -05:00
|
|
|
|
2013-02-08 21:22:23 -05:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/subject"
|
2013-02-11 04:48:49 -05:00
|
|
|
android:layout_width="match_parent"
|
2013-02-04 07:23:44 -05:00
|
|
|
android:layout_height="wrap_content"
|
2013-02-08 21:22:23 -05:00
|
|
|
android:maxLines="3"
|
|
|
|
android:ellipsize="end"
|
|
|
|
android:textStyle="bold"
|
|
|
|
android:textColor="?android:attr/textColorPrimary"
|
|
|
|
android:textAppearance="?android:attr/textAppearanceMedium"
|
2013-02-11 04:48:49 -05:00
|
|
|
android:text="@string/general_no_subject"
|
|
|
|
android:padding="8dp" />
|
2012-02-20 22:56:05 -05:00
|
|
|
|
2013-02-08 21:22:23 -05:00
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2013-02-11 04:48:49 -05:00
|
|
|
android:orientation="horizontal">
|
2012-02-20 22:56:05 -05:00
|
|
|
|
2013-02-08 21:22:23 -05:00
|
|
|
<!-- Color chip -->
|
|
|
|
<View
|
|
|
|
android:id="@+id/chip"
|
|
|
|
android:layout_width="6dip"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_marginRight="6dip"/>
|
|
|
|
|
|
|
|
<RelativeLayout
|
|
|
|
android:layout_width="wrap_content"
|
2013-02-11 04:48:49 -05:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
2013-02-08 21:22:23 -05:00
|
|
|
<QuickContactBadge
|
2013-02-11 04:48:49 -05:00
|
|
|
android:id="@+id/contact_badge"
|
2013-02-12 03:59:02 -05:00
|
|
|
android:layout_width="40dp"
|
|
|
|
android:layout_height="40dp"
|
2013-02-11 04:48:49 -05:00
|
|
|
android:layout_marginTop="8dp"
|
|
|
|
android:layout_marginLeft="8dp" />
|
|
|
|
|
2013-02-08 21:22:23 -05:00
|
|
|
<!-- State icons -->
|
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/icon_container"
|
2012-09-07 23:33:53 -04:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2013-02-08 21:22:23 -05:00
|
|
|
android:layout_marginTop="10dip"
|
|
|
|
android:layout_marginBottom="2dip"
|
2013-02-11 04:48:49 -05:00
|
|
|
android:layout_below="@+id/contact_badge"
|
|
|
|
android:layout_centerHorizontal="true"
|
|
|
|
android:orientation="vertical">
|
2013-02-08 21:22:23 -05:00
|
|
|
|
|
|
|
<View
|
|
|
|
android:id="@+id/answered"
|
|
|
|
android:layout_width="32sp"
|
|
|
|
android:layout_height="32sp"
|
|
|
|
android:paddingRight="2dip"
|
|
|
|
android:background="@drawable/ic_email_answered_small"/>
|
|
|
|
|
|
|
|
<View
|
|
|
|
android:id="@+id/forwarded"
|
|
|
|
android:layout_width="22sp"
|
|
|
|
android:layout_height="22sp"
|
|
|
|
android:paddingRight="4dip"
|
|
|
|
android:background="@drawable/ic_email_forwarded_small"/>
|
|
|
|
|
|
|
|
</LinearLayout>
|
2013-02-11 04:48:49 -05:00
|
|
|
|
2013-02-08 21:22:23 -05:00
|
|
|
</RelativeLayout>
|
|
|
|
|
|
|
|
<RelativeLayout
|
|
|
|
android:layout_width="match_parent"
|
2013-02-11 04:48:49 -05:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:padding="6dip"
|
|
|
|
android:layout_marginLeft="4dp">
|
2012-02-20 22:56:05 -05:00
|
|
|
|
2013-02-08 21:22:23 -05:00
|
|
|
<!-- From -->
|
|
|
|
<TextView
|
2013-02-04 07:23:44 -05:00
|
|
|
android:id="@+id/from"
|
2012-02-21 17:38:43 -05:00
|
|
|
android:layout_width="wrap_content"
|
2013-02-04 07:23:44 -05:00
|
|
|
android:layout_height="wrap_content"
|
2013-02-08 21:22:23 -05:00
|
|
|
android:layout_alignParentTop="true"
|
2013-02-04 07:23:44 -05:00
|
|
|
android:layout_alignParentLeft="true"
|
2013-02-11 07:03:30 -05:00
|
|
|
android:layout_toLeftOf="@+id/flagged"
|
2013-02-11 04:48:49 -05:00
|
|
|
android:paddingTop="0dp"
|
2013-02-04 07:23:44 -05:00
|
|
|
android:paddingRight="6dip"
|
|
|
|
android:singleLine="true"
|
|
|
|
android:ellipsize="end"
|
|
|
|
android:textColor="?android:attr/textColorPrimary"
|
2013-02-08 21:22:23 -05:00
|
|
|
android:textAppearance="?android:attr/textAppearanceMedium"
|
2013-02-11 04:48:49 -05:00
|
|
|
android:textStyle="bold"
|
|
|
|
android:text="@string/general_no_sender" />
|
2012-02-21 17:38:43 -05:00
|
|
|
|
2013-02-08 21:22:23 -05:00
|
|
|
<!-- To -->
|
|
|
|
<TextView
|
2013-02-11 04:48:49 -05:00
|
|
|
android:id="@+id/to_label"
|
2013-02-08 21:22:23 -05:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2013-02-11 04:48:49 -05:00
|
|
|
android:layout_alignLeft="@+id/from"
|
|
|
|
android:layout_alignBaseline="@+id/to"
|
2013-02-11 07:03:30 -05:00
|
|
|
android:paddingTop="2dp"
|
|
|
|
android:paddingRight="4dp"
|
2013-02-08 21:22:23 -05:00
|
|
|
android:text="@string/message_to_label"
|
|
|
|
android:textColor="?android:attr/textColorPrimary"
|
|
|
|
android:textAppearance="@android:style/TextAppearance.Medium"
|
2013-02-11 04:48:49 -05:00
|
|
|
android:textStyle="bold" />
|
2013-02-08 21:22:23 -05:00
|
|
|
|
|
|
|
<TextView
|
2013-02-04 07:23:44 -05:00
|
|
|
android:id="@+id/to"
|
2012-02-20 22:56:05 -05:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2013-02-11 04:48:49 -05:00
|
|
|
android:layout_toRightOf="@+id/to_label"
|
|
|
|
android:layout_below="@+id/from"
|
2013-02-11 07:03:30 -05:00
|
|
|
android:layout_toLeftOf="@+id/flagged"
|
2013-02-04 07:23:44 -05:00
|
|
|
android:maxLines="2"
|
|
|
|
android:ellipsize="end"
|
2013-02-11 06:22:20 -05:00
|
|
|
android:paddingTop="2dp"
|
2013-02-11 04:48:49 -05:00
|
|
|
android:textColor="?android:attr/textColorSecondary"
|
|
|
|
android:textAppearance="@android:style/TextAppearance.Medium" />
|
2013-02-08 21:22:23 -05:00
|
|
|
|
|
|
|
<!-- CC -->
|
2013-02-11 04:48:49 -05:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/cc_label"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_below="@+id/to_label"
|
|
|
|
android:layout_alignLeft="@+id/to_label"
|
|
|
|
android:layout_alignBaseline="@+id/cc"
|
2013-02-11 06:22:20 -05:00
|
|
|
android:paddingTop="2dp"
|
2013-02-11 07:03:30 -05:00
|
|
|
android:paddingRight="4dp"
|
2013-02-11 04:48:49 -05:00
|
|
|
android:text="@string/message_view_cc_label"
|
|
|
|
android:textColor="?android:attr/textColorPrimary"
|
|
|
|
android:textStyle="bold"
|
|
|
|
android:textAppearance="@android:style/TextAppearance.Medium" /> -->
|
|
|
|
|
2013-02-08 21:22:23 -05:00
|
|
|
<TextView
|
2013-02-04 07:23:44 -05:00
|
|
|
android:id="@+id/cc"
|
2012-02-21 17:38:43 -05:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2013-02-11 04:48:49 -05:00
|
|
|
android:layout_toRightOf="@+id/cc_label"
|
|
|
|
android:layout_below="@+id/to"
|
2013-02-11 07:03:30 -05:00
|
|
|
android:layout_toLeftOf="@+id/flagged"
|
2013-02-04 07:23:44 -05:00
|
|
|
android:maxLines="2"
|
|
|
|
android:ellipsize="end"
|
2013-02-11 06:22:20 -05:00
|
|
|
android:paddingTop="2dp"
|
2013-02-04 07:23:44 -05:00
|
|
|
android:textColor="?android:attr/textColorSecondary"
|
2013-02-11 04:48:49 -05:00
|
|
|
android:textAppearance="@android:style/TextAppearance.Medium" />
|
2012-03-05 22:26:18 -05:00
|
|
|
|
2013-02-11 04:48:49 -05:00
|
|
|
<!-- Date -->
|
2013-02-08 21:22:23 -05:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/date"
|
2012-02-20 22:56:05 -05:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2013-02-11 04:48:49 -05:00
|
|
|
android:layout_below="@id/cc"
|
|
|
|
android:layout_alignParentRight="true"
|
|
|
|
android:paddingTop="8dp"
|
2013-02-08 21:22:23 -05:00
|
|
|
android:singleLine="true"
|
2013-02-04 07:23:44 -05:00
|
|
|
android:ellipsize="none"
|
2013-02-11 04:48:49 -05:00
|
|
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
|
|
|
android:textColor="?android:attr/textColorSecondary" />
|
|
|
|
|
2013-02-08 21:22:23 -05:00
|
|
|
<CheckBox
|
|
|
|
android:id="@+id/flagged"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2013-02-11 04:48:49 -05:00
|
|
|
android:layout_alignParentRight="true"
|
|
|
|
android:layout_alignTop="@id/from"
|
2013-02-08 21:22:23 -05:00
|
|
|
android:focusable="false"
|
2013-02-12 04:26:53 -05:00
|
|
|
style="?android:attr/starStyle"
|
2013-02-11 04:48:49 -05:00
|
|
|
android:checked="false" />
|
2012-03-17 23:51:29 -04:00
|
|
|
|
2013-02-08 21:22:23 -05:00
|
|
|
</RelativeLayout>
|
2012-03-17 23:51:29 -04:00
|
|
|
|
|
|
|
</LinearLayout>
|
2013-02-11 04:48:49 -05:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/additional_headers_view"
|
|
|
|
android:layout_width="match_parent"
|
2013-02-08 21:22:23 -05:00
|
|
|
android:layout_height="wrap_content"
|
2013-02-11 04:48:49 -05:00
|
|
|
android:layout_weight="1"
|
|
|
|
android:layout_margin="10dp"
|
2013-02-08 21:22:23 -05:00
|
|
|
android:layout_marginRight="6dip"
|
2013-02-11 04:48:49 -05:00
|
|
|
android:singleLine="false"
|
|
|
|
android:ellipsize="none"
|
|
|
|
android:textColor="?android:attr/textColorSecondary"
|
|
|
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
|
|
|
android:textIsSelectable="true" />
|
2013-02-08 21:22:23 -05:00
|
|
|
|
2013-02-04 07:23:44 -05:00
|
|
|
<View
|
2013-02-08 21:22:23 -05:00
|
|
|
android:layout_height="1dip"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_alignParentLeft="true"
|
|
|
|
android:layout_below="@id/additional_headers_view"
|
|
|
|
android:background="@drawable/divider_horizontal_email"/>
|
2013-02-04 07:23:44 -05:00
|
|
|
|
2012-02-20 22:56:05 -05:00
|
|
|
<!-- Button area -->
|
|
|
|
<LinearLayout
|
2013-02-08 21:22:23 -05:00
|
|
|
android:layout_width="fill_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:gravity="right"
|
|
|
|
android:paddingLeft="6dip"
|
|
|
|
android:paddingRight="6dip"
|
|
|
|
android:paddingTop="4dip"
|
|
|
|
android:baselineAligned="false">
|
2012-02-20 22:56:05 -05:00
|
|
|
|
|
|
|
<Button
|
2013-02-08 21:22:23 -05:00
|
|
|
android:id="@+id/show_pictures"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:visibility="gone"
|
|
|
|
android:layout_marginLeft="6dip"
|
|
|
|
android:layout_marginBottom="4dip"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="@string/message_view_show_pictures_action"
|
|
|
|
style="?android:attr/buttonStyleSmall"/>
|
2012-02-20 22:56:05 -05:00
|
|
|
|
|
|
|
<Button
|
2013-02-08 21:22:23 -05:00
|
|
|
android:id="@+id/show_attachments"
|
|
|
|
android:visibility="gone"
|
|
|
|
android:layout_marginLeft="6dip"
|
|
|
|
android:layout_marginBottom="4dip"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="@string/message_view_show_attachments_action"
|
|
|
|
style="?android:attr/buttonStyleSmall"/>
|
2012-02-20 22:56:05 -05:00
|
|
|
|
|
|
|
<Button
|
2013-02-08 21:22:23 -05:00
|
|
|
android:id="@+id/show_message"
|
|
|
|
android:visibility="gone"
|
|
|
|
android:layout_marginLeft="6dip"
|
|
|
|
android:layout_marginBottom="4dip"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="@string/message_view_show_message_action"
|
|
|
|
style="?android:attr/buttonStyleSmall"/>
|
2012-02-20 22:56:05 -05:00
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<include layout="@layout/message_view_crypto_layout"/>
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
</com.fsck.k9.view.MessageHeader>
|