blob: dc3c40e9afd225e448c31ed08f2bd39d29d6a8e4 [file] [log] [blame]
Andrew Sapperstein4aa1c132012-06-08 17:53:41 -07001<?xml version="1.0" encoding="utf-8"?>
2<!--
3 Copyright (C) 2012 Google Inc.
4 Licensed to The Android Open Source Project.
5
6 Licensed under the Apache License, Version 2.0 (the "License");
7 you may not use this file except in compliance with the License.
8 You may obtain a copy of the License at
9
10 http://www.apache.org/licenses/LICENSE-2.0
11
12 Unless required by applicable law or agreed to in writing, software
13 distributed under the License is distributed on an "AS IS" BASIS,
14 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 See the License for the specific language governing permissions and
16 limitations under the License.
17-->
Mark Weie18f42d2012-10-17 15:06:19 -070018<com.android.mail.browse.MessageAttachmentBar xmlns:android="http://schemas.android.com/apk/res/android"
Andrew Sapperstein4aa1c132012-06-08 17:53:41 -070019 android:layout_width="match_parent"
20 android:layout_height="wrap_content"
21 android:layout_marginBottom="8dip"
Andrew Sapperstein8c01f652012-07-17 18:05:30 -070022 android:background="@drawable/attachment_bg_holo"
Mark Weie18f42d2012-10-17 15:06:19 -070023 android:minHeight="48dip" >
Andrew Sapperstein4aa1c132012-06-08 17:53:41 -070024
Andy Huang460de562012-10-17 18:50:34 -070025 <LinearLayout
26 android:layout_width="match_parent"
27 android:layout_height="match_parent"
28 android:orientation="horizontal">
Andrew Sapperstein4aa1c132012-06-08 17:53:41 -070029
Mark Weie18f42d2012-10-17 15:06:19 -070030 <ImageView
31 android:id="@+id/attachment_icon"
32 android:layout_width="48dip"
33 android:layout_height="match_parent"
Mark Weie18f42d2012-10-17 15:06:19 -070034 android:background="@color/attachment_image_background_color"
35 android:scaleType="center"
Andrew Sapperstein70599cf2013-12-06 18:38:13 -080036 android:src="@drawable/ic_menu_attachment_holo_light"
37 style="@style/MessageAttachmentBarMarginEndStyle" />
Andrew Sapperstein4aa1c132012-06-08 17:53:41 -070038
Mark Weie18f42d2012-10-17 15:06:19 -070039 <RelativeLayout
40 android:layout_width="0dip"
mindypa8a088c2012-10-12 14:12:49 -070041 android:layout_height="wrap_content"
Mark Weie18f42d2012-10-17 15:06:19 -070042 android:layout_gravity="center_vertical"
43 android:layout_weight="1" >
Andrew Sapperstein4aa1c132012-06-08 17:53:41 -070044
Mark Weie18f42d2012-10-17 15:06:19 -070045 <TextView
46 android:id="@+id/attachment_title"
47 android:layout_width="match_parent"
48 android:layout_height="wrap_content"
Mark Weie18f42d2012-10-17 15:06:19 -070049 android:ellipsize="end"
50 android:singleLine="true"
51 android:textColor="#333333"
Andrew Sapperstein70599cf2013-12-06 18:38:13 -080052 android:textSize="14sp"
53 style="@style/MessageAttachmentBarMarginEndStyle" />
Andrew Sapperstein4aa1c132012-06-08 17:53:41 -070054
Mark Weie18f42d2012-10-17 15:06:19 -070055 <TextView
56 android:id="@+id/attachment_subtitle"
57 android:layout_width="match_parent"
58 android:layout_height="wrap_content"
59 android:layout_below="@id/attachment_title"
Mark Weie18f42d2012-10-17 15:06:19 -070060 android:ellipsize="end"
61 android:singleLine="true"
62 android:textColor="#aaaaaa"
Andrew Sapperstein70599cf2013-12-06 18:38:13 -080063 android:textSize="12sp"
64 style="@style/MessageAttachmentBarMarginEndStyle" />
Andrew Sapperstein4aa1c132012-06-08 17:53:41 -070065
Andrew Sapperstein70599cf2013-12-06 18:38:13 -080066 <include layout="@layout/conversation_message_attachment_bar_progress_bar"/>
Mark Weie18f42d2012-10-17 15:06:19 -070067 </RelativeLayout>
68
69 <ImageView
70 android:id="@+id/overflow"
71 style="@android:style/Widget.Holo.Light.ActionButton.Overflow"
72 android:layout_width="48dip"
Mark Wei47ca4e22012-10-17 16:20:15 -070073 android:layout_height="match_parent" />
Mark Weie18f42d2012-10-17 15:06:19 -070074
75 <ImageButton
76 android:id="@+id/cancel_attachment"
77 android:layout_width="48dip"
78 android:layout_height="match_parent"
79 android:background="?android:attr/selectableItemBackground"
80 android:clickable="true"
81 android:scaleType="center"
82 android:src="@drawable/ic_cancel_holo_light"
83 android:visibility="gone" />
84 </LinearLayout>
Andrew Sapperstein4aa1c132012-06-08 17:53:41 -070085
Andrew Sappersteinaa6644f2012-06-22 11:51:09 -070086 <View
87 android:id="@+id/attachment_push_state"
Mark Weie18f42d2012-10-17 15:06:19 -070088 android:layout_width="match_parent"
89 android:layout_height="match_parent"
Andrew Sapperstein8c01f652012-07-17 18:05:30 -070090 android:background="?android:attr/selectableItemBackground"
91 android:focusable="true" />
Andrew Sappersteinaa6644f2012-06-22 11:51:09 -070092
Mark Weie18f42d2012-10-17 15:06:19 -070093</com.android.mail.browse.MessageAttachmentBar>