Andrew Sapperstein | 4aa1c13 | 2012-06-08 17:53:41 -0700 | [diff] [blame] | 1 | <?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 Wei | e18f42d | 2012-10-17 15:06:19 -0700 | [diff] [blame] | 18 | <com.android.mail.browse.MessageAttachmentBar xmlns:android="http://schemas.android.com/apk/res/android" |
Andrew Sapperstein | 4aa1c13 | 2012-06-08 17:53:41 -0700 | [diff] [blame] | 19 | android:layout_width="match_parent" |
| 20 | android:layout_height="wrap_content" |
| 21 | android:layout_marginBottom="8dip" |
Andrew Sapperstein | 8c01f65 | 2012-07-17 18:05:30 -0700 | [diff] [blame] | 22 | android:background="@drawable/attachment_bg_holo" |
Mark Wei | e18f42d | 2012-10-17 15:06:19 -0700 | [diff] [blame] | 23 | android:minHeight="48dip" > |
Andrew Sapperstein | 4aa1c13 | 2012-06-08 17:53:41 -0700 | [diff] [blame] | 24 | |
Andy Huang | 460de56 | 2012-10-17 18:50:34 -0700 | [diff] [blame] | 25 | <LinearLayout |
| 26 | android:layout_width="match_parent" |
| 27 | android:layout_height="match_parent" |
| 28 | android:orientation="horizontal"> |
Andrew Sapperstein | 4aa1c13 | 2012-06-08 17:53:41 -0700 | [diff] [blame] | 29 | |
Mark Wei | e18f42d | 2012-10-17 15:06:19 -0700 | [diff] [blame] | 30 | <ImageView |
| 31 | android:id="@+id/attachment_icon" |
| 32 | android:layout_width="48dip" |
| 33 | android:layout_height="match_parent" |
Mark Wei | e18f42d | 2012-10-17 15:06:19 -0700 | [diff] [blame] | 34 | android:background="@color/attachment_image_background_color" |
| 35 | android:scaleType="center" |
Andrew Sapperstein | 70599cf | 2013-12-06 18:38:13 -0800 | [diff] [blame^] | 36 | android:src="@drawable/ic_menu_attachment_holo_light" |
| 37 | style="@style/MessageAttachmentBarMarginEndStyle" /> |
Andrew Sapperstein | 4aa1c13 | 2012-06-08 17:53:41 -0700 | [diff] [blame] | 38 | |
Mark Wei | e18f42d | 2012-10-17 15:06:19 -0700 | [diff] [blame] | 39 | <RelativeLayout |
| 40 | android:layout_width="0dip" |
mindyp | a8a088c | 2012-10-12 14:12:49 -0700 | [diff] [blame] | 41 | android:layout_height="wrap_content" |
Mark Wei | e18f42d | 2012-10-17 15:06:19 -0700 | [diff] [blame] | 42 | android:layout_gravity="center_vertical" |
| 43 | android:layout_weight="1" > |
Andrew Sapperstein | 4aa1c13 | 2012-06-08 17:53:41 -0700 | [diff] [blame] | 44 | |
Mark Wei | e18f42d | 2012-10-17 15:06:19 -0700 | [diff] [blame] | 45 | <TextView |
| 46 | android:id="@+id/attachment_title" |
| 47 | android:layout_width="match_parent" |
| 48 | android:layout_height="wrap_content" |
Mark Wei | e18f42d | 2012-10-17 15:06:19 -0700 | [diff] [blame] | 49 | android:ellipsize="end" |
| 50 | android:singleLine="true" |
| 51 | android:textColor="#333333" |
Andrew Sapperstein | 70599cf | 2013-12-06 18:38:13 -0800 | [diff] [blame^] | 52 | android:textSize="14sp" |
| 53 | style="@style/MessageAttachmentBarMarginEndStyle" /> |
Andrew Sapperstein | 4aa1c13 | 2012-06-08 17:53:41 -0700 | [diff] [blame] | 54 | |
Mark Wei | e18f42d | 2012-10-17 15:06:19 -0700 | [diff] [blame] | 55 | <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 Wei | e18f42d | 2012-10-17 15:06:19 -0700 | [diff] [blame] | 60 | android:ellipsize="end" |
| 61 | android:singleLine="true" |
| 62 | android:textColor="#aaaaaa" |
Andrew Sapperstein | 70599cf | 2013-12-06 18:38:13 -0800 | [diff] [blame^] | 63 | android:textSize="12sp" |
| 64 | style="@style/MessageAttachmentBarMarginEndStyle" /> |
Andrew Sapperstein | 4aa1c13 | 2012-06-08 17:53:41 -0700 | [diff] [blame] | 65 | |
Andrew Sapperstein | 70599cf | 2013-12-06 18:38:13 -0800 | [diff] [blame^] | 66 | <include layout="@layout/conversation_message_attachment_bar_progress_bar"/> |
Mark Wei | e18f42d | 2012-10-17 15:06:19 -0700 | [diff] [blame] | 67 | </RelativeLayout> |
| 68 | |
| 69 | <ImageView |
| 70 | android:id="@+id/overflow" |
| 71 | style="@android:style/Widget.Holo.Light.ActionButton.Overflow" |
| 72 | android:layout_width="48dip" |
Mark Wei | 47ca4e2 | 2012-10-17 16:20:15 -0700 | [diff] [blame] | 73 | android:layout_height="match_parent" /> |
Mark Wei | e18f42d | 2012-10-17 15:06:19 -0700 | [diff] [blame] | 74 | |
| 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 Sapperstein | 4aa1c13 | 2012-06-08 17:53:41 -0700 | [diff] [blame] | 85 | |
Andrew Sapperstein | aa6644f | 2012-06-22 11:51:09 -0700 | [diff] [blame] | 86 | <View |
| 87 | android:id="@+id/attachment_push_state" |
Mark Wei | e18f42d | 2012-10-17 15:06:19 -0700 | [diff] [blame] | 88 | android:layout_width="match_parent" |
| 89 | android:layout_height="match_parent" |
Andrew Sapperstein | 8c01f65 | 2012-07-17 18:05:30 -0700 | [diff] [blame] | 90 | android:background="?android:attr/selectableItemBackground" |
| 91 | android:focusable="true" /> |
Andrew Sapperstein | aa6644f | 2012-06-22 11:51:09 -0700 | [diff] [blame] | 92 | |
Mark Wei | e18f42d | 2012-10-17 15:06:19 -0700 | [diff] [blame] | 93 | </com.android.mail.browse.MessageAttachmentBar> |