blob: 4fe12c0bd3dddc8fcd077360f666c6d0ff9142ab [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"
Andrew Sappersteine1557032014-08-07 19:53:12 -070021 android:layout_marginBottom="12dp"
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"
Andrew Sappersteinf59d01c2014-02-20 10:27:06 -080051 android:textAlignment="viewStart"
Mark Weie18f42d2012-10-17 15:06:19 -070052 android:textColor="#333333"
Andrew Sapperstein70599cf2013-12-06 18:38:13 -080053 android:textSize="14sp"
54 style="@style/MessageAttachmentBarMarginEndStyle" />
Andrew Sapperstein4aa1c132012-06-08 17:53:41 -070055
Mark Weie18f42d2012-10-17 15:06:19 -070056 <TextView
57 android:id="@+id/attachment_subtitle"
58 android:layout_width="match_parent"
59 android:layout_height="wrap_content"
60 android:layout_below="@id/attachment_title"
Mark Weie18f42d2012-10-17 15:06:19 -070061 android:ellipsize="end"
62 android:singleLine="true"
Andrew Sappersteinf59d01c2014-02-20 10:27:06 -080063 android:textAlignment="viewStart"
Mark Weie18f42d2012-10-17 15:06:19 -070064 android:textColor="#aaaaaa"
Andrew Sapperstein70599cf2013-12-06 18:38:13 -080065 android:textSize="12sp"
66 style="@style/MessageAttachmentBarMarginEndStyle" />
Andrew Sapperstein4aa1c132012-06-08 17:53:41 -070067
Andrew Sapperstein70599cf2013-12-06 18:38:13 -080068 <include layout="@layout/conversation_message_attachment_bar_progress_bar"/>
Mark Weie18f42d2012-10-17 15:06:19 -070069 </RelativeLayout>
70
71 <ImageView
72 android:id="@+id/overflow"
Andy Huangba232502014-06-03 18:25:20 -070073 style="@style/OverflowButtonStyle"
Mark Weie18f42d2012-10-17 15:06:19 -070074 android:layout_width="48dip"
Mark Wei47ca4e22012-10-17 16:20:15 -070075 android:layout_height="match_parent" />
Mark Weie18f42d2012-10-17 15:06:19 -070076
77 <ImageButton
78 android:id="@+id/cancel_attachment"
79 android:layout_width="48dip"
80 android:layout_height="match_parent"
81 android:background="?android:attr/selectableItemBackground"
82 android:clickable="true"
83 android:scaleType="center"
84 android:src="@drawable/ic_cancel_holo_light"
85 android:visibility="gone" />
86 </LinearLayout>
Andrew Sapperstein4aa1c132012-06-08 17:53:41 -070087
Andrew Sappersteinaa6644f2012-06-22 11:51:09 -070088 <View
89 android:id="@+id/attachment_push_state"
Mark Weie18f42d2012-10-17 15:06:19 -070090 android:layout_width="match_parent"
91 android:layout_height="match_parent"
Andrew Sapperstein8c01f652012-07-17 18:05:30 -070092 android:background="?android:attr/selectableItemBackground"
93 android:focusable="true" />
Andrew Sappersteinaa6644f2012-06-22 11:51:09 -070094
Andy Huangba232502014-06-03 18:25:20 -070095</com.android.mail.browse.MessageAttachmentBar>