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" |
Andrew Sapperstein | e155703 | 2014-08-07 19:53:12 -0700 | [diff] [blame] | 21 | android:layout_marginBottom="12dp" |
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" |
Andrew Sapperstein | f59d01c | 2014-02-20 10:27:06 -0800 | [diff] [blame] | 51 | android:textAlignment="viewStart" |
Mark Wei | e18f42d | 2012-10-17 15:06:19 -0700 | [diff] [blame] | 52 | android:textColor="#333333" |
Andrew Sapperstein | 70599cf | 2013-12-06 18:38:13 -0800 | [diff] [blame] | 53 | android:textSize="14sp" |
| 54 | style="@style/MessageAttachmentBarMarginEndStyle" /> |
Andrew Sapperstein | 4aa1c13 | 2012-06-08 17:53:41 -0700 | [diff] [blame] | 55 | |
Mark Wei | e18f42d | 2012-10-17 15:06:19 -0700 | [diff] [blame] | 56 | <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 Wei | e18f42d | 2012-10-17 15:06:19 -0700 | [diff] [blame] | 61 | android:ellipsize="end" |
| 62 | android:singleLine="true" |
Andrew Sapperstein | f59d01c | 2014-02-20 10:27:06 -0800 | [diff] [blame] | 63 | android:textAlignment="viewStart" |
Mark Wei | e18f42d | 2012-10-17 15:06:19 -0700 | [diff] [blame] | 64 | android:textColor="#aaaaaa" |
Andrew Sapperstein | 70599cf | 2013-12-06 18:38:13 -0800 | [diff] [blame] | 65 | android:textSize="12sp" |
| 66 | style="@style/MessageAttachmentBarMarginEndStyle" /> |
Andrew Sapperstein | 4aa1c13 | 2012-06-08 17:53:41 -0700 | [diff] [blame] | 67 | |
Andrew Sapperstein | 70599cf | 2013-12-06 18:38:13 -0800 | [diff] [blame] | 68 | <include layout="@layout/conversation_message_attachment_bar_progress_bar"/> |
Mark Wei | e18f42d | 2012-10-17 15:06:19 -0700 | [diff] [blame] | 69 | </RelativeLayout> |
| 70 | |
| 71 | <ImageView |
| 72 | android:id="@+id/overflow" |
Andy Huang | ba23250 | 2014-06-03 18:25:20 -0700 | [diff] [blame] | 73 | style="@style/OverflowButtonStyle" |
Mark Wei | e18f42d | 2012-10-17 15:06:19 -0700 | [diff] [blame] | 74 | android:layout_width="48dip" |
Mark Wei | 47ca4e2 | 2012-10-17 16:20:15 -0700 | [diff] [blame] | 75 | android:layout_height="match_parent" /> |
Mark Wei | e18f42d | 2012-10-17 15:06:19 -0700 | [diff] [blame] | 76 | |
| 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 Sapperstein | 4aa1c13 | 2012-06-08 17:53:41 -0700 | [diff] [blame] | 87 | |
Andrew Sapperstein | aa6644f | 2012-06-22 11:51:09 -0700 | [diff] [blame] | 88 | <View |
| 89 | android:id="@+id/attachment_push_state" |
Mark Wei | e18f42d | 2012-10-17 15:06:19 -0700 | [diff] [blame] | 90 | android:layout_width="match_parent" |
| 91 | android:layout_height="match_parent" |
Andrew Sapperstein | 8c01f65 | 2012-07-17 18:05:30 -0700 | [diff] [blame] | 92 | android:background="?android:attr/selectableItemBackground" |
| 93 | android:focusable="true" /> |
Andrew Sapperstein | aa6644f | 2012-06-22 11:51:09 -0700 | [diff] [blame] | 94 | |
Andy Huang | ba23250 | 2014-06-03 18:25:20 -0700 | [diff] [blame] | 95 | </com.android.mail.browse.MessageAttachmentBar> |