2008-10-28 01:04:44 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<FrameLayout
|
|
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2009-11-13 00:38:26 +00:00
|
|
|
android:paddingBottom="4dip">
|
2008-10-28 01:04:44 +00:00
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2009-11-13 00:38:26 +00:00
|
|
|
android:paddingLeft="4dip">
|
2008-10-28 01:04:44 +00:00
|
|
|
<RelativeLayout
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:background="@drawable/text_box"
|
|
|
|
android:gravity="center_vertical">
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/attachment_icon"
|
2009-11-13 00:38:26 +00:00
|
|
|
android:layout_width="62dip"
|
|
|
|
android:layout_height="62dip"
|
2008-10-28 01:04:44 +00:00
|
|
|
android:src="@drawable/attached_image_placeholder"
|
2009-11-13 00:38:26 +00:00
|
|
|
android:layout_marginLeft="4dip"
|
|
|
|
android:layout_marginRight="4dip"
|
|
|
|
android:layout_marginBottom="4dip"
|
|
|
|
android:layout_marginTop="4dip" />
|
2008-10-28 01:04:44 +00: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 09:10:32 +00:00
|
|
|
android:textColor="?android:attr/textColorSecondary"
|
2008-10-28 01:04:44 +00: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 09:10:32 +00:00
|
|
|
android:textColor="?android:attr/textColorTertiary"
|
2008-10-28 01:04:44 +00: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-02 00:27:42 +00:00
|
|
|
android:paddingLeft="20dip"
|
|
|
|
android:paddingRight="20dip"
|
2008-10-28 01:04:44 +00:00
|
|
|
android:text="@string/message_view_attachment_download_action"
|
|
|
|
android:singleLine="true"
|
|
|
|
android:layout_alignParentRight="true"
|
|
|
|
android:layout_below="@id/attachment_name"
|
2009-11-13 00:38:26 +00:00
|
|
|
android:layout_marginTop="6dip" />
|
2008-10-28 01:04:44 +00:00
|
|
|
<Button
|
|
|
|
android:id="@+id/view"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
style="?android:attr/buttonStyleSmall"
|
2010-05-02 00:27:42 +00:00
|
|
|
android:paddingLeft="20dip"
|
|
|
|
android:paddingRight="20dip"
|
2008-10-28 01:04:44 +00: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-13 00:38:26 +00:00
|
|
|
android:layout_marginTop="6dip" />
|
2008-10-28 01:04:44 +00: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>
|
|
|
|
</FrameLayout>
|