2008-10-27 21:04:44 -04:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2011-01-06 11:56:20 -05:00
|
|
|
<com.fsck.k9.view.AttachmentView
|
2008-10-27 21:04:44 -04:00
|
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2009-11-12 19:38:26 -05:00
|
|
|
android:paddingBottom="4dip">
|
2008-10-27 21:04:44 -04:00
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2009-11-12 19:38:26 -05:00
|
|
|
android:paddingLeft="4dip">
|
2008-10-27 21:04:44 -04:00
|
|
|
<RelativeLayout
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2013-02-05 12:35:43 -05:00
|
|
|
android:background="?attr/messageViewAttachmentBackground"
|
2008-10-27 21:04:44 -04:00
|
|
|
android:gravity="center_vertical">
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/attachment_icon"
|
2009-11-12 19:38:26 -05:00
|
|
|
android:layout_width="62dip"
|
|
|
|
android:layout_height="62dip"
|
2008-10-27 21:04:44 -04:00
|
|
|
android:src="@drawable/attached_image_placeholder"
|
2009-11-12 19:38:26 -05:00
|
|
|
android:layout_marginLeft="4dip"
|
|
|
|
android:layout_marginRight="4dip"
|
|
|
|
android:layout_marginBottom="4dip"
|
|
|
|
android:layout_marginTop="4dip" />
|
2008-10-27 21:04:44 -04:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/attachment_name"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:textAppearance="?android:attr/textAppearanceMedium"
|
2009-04-19 05:10:32 -04:00
|
|
|
android:textColor="?android:attr/textColorSecondary"
|
2008-10-27 21:04:44 -04:00
|
|
|
android:singleLine="true"
|
|
|
|
android:ellipsize="middle"
|
|
|
|
android:layout_alignParentTop="true"
|
|
|
|
android:layout_toRightOf="@id/attachment_icon"
|
|
|
|
android:layout_alignParentRight="true"
|
|
|
|
android:layout_alignWithParentIfMissing="true" />
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/attachment_info"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
2009-04-19 05:10:32 -04:00
|
|
|
android:textColor="?android:attr/textColorTertiary"
|
2008-10-27 21:04:44 -04:00
|
|
|
android:singleLine="true"
|
|
|
|
android:ellipsize="middle"
|
|
|
|
android:layout_alignLeft="@id/attachment_name"
|
|
|
|
android:layout_below="@id/attachment_name"
|
|
|
|
android:layout_alignWithParentIfMissing="true" />
|
|
|
|
<Button
|
|
|
|
android:id="@+id/download"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
style="?android:attr/buttonStyleSmall"
|
2010-05-01 20:27:42 -04:00
|
|
|
android:paddingLeft="20dip"
|
|
|
|
android:paddingRight="20dip"
|
2008-10-27 21:04:44 -04:00
|
|
|
android:text="@string/message_view_attachment_download_action"
|
|
|
|
android:singleLine="true"
|
|
|
|
android:layout_alignParentRight="true"
|
|
|
|
android:layout_below="@id/attachment_name"
|
2009-11-12 19:38:26 -05:00
|
|
|
android:layout_marginTop="6dip" />
|
2008-10-27 21:04:44 -04:00
|
|
|
<Button
|
|
|
|
android:id="@+id/view"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
style="?android:attr/buttonStyleSmall"
|
2010-05-01 20:27:42 -04:00
|
|
|
android:paddingLeft="20dip"
|
|
|
|
android:paddingRight="20dip"
|
2008-10-27 21:04:44 -04:00
|
|
|
android:text="@string/message_view_attachment_view_action"
|
|
|
|
android:singleLine="true"
|
|
|
|
android:layout_toLeftOf="@id/download"
|
|
|
|
android:layout_alignWithParentIfMissing="true"
|
|
|
|
android:layout_below="@id/attachment_name"
|
2009-11-12 19:38:26 -05:00
|
|
|
android:layout_marginTop="6dip" />
|
2008-10-27 21:04:44 -04:00
|
|
|
</RelativeLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="fill_parent"
|
|
|
|
android:layout_gravity="center_vertical">
|
|
|
|
<ImageView
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:src="@drawable/ic_email_attachment"
|
|
|
|
android:layout_alignParentLeft="true" />
|
|
|
|
</LinearLayout>
|
2011-01-06 11:56:20 -05:00
|
|
|
</com.fsck.k9.view.AttachmentView>
|