Mindy Pereira | 1a73ea8 | 2011-12-13 10:12:27 -0800 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
Vikram Aggarwal | 5e5ac74 | 2011-12-19 08:14:16 -0800 | [diff] [blame] | 2 | <!-- |
| 3 | Copyright (C) 2011 Google Inc. |
| 4 | Licensed to The Android Open Source Project. |
Mindy Pereira | 1a73ea8 | 2011-12-13 10:12:27 -0800 | [diff] [blame] | 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 | --> |
| 18 | <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" |
Mindy Pereira | 43d62dc | 2011-12-13 10:41:19 -0800 | [diff] [blame] | 19 | style="@style/AttachmentContainer"> |
Mindy Pereira | 1a73ea8 | 2011-12-13 10:12:27 -0800 | [diff] [blame] | 20 | |
| 21 | <FrameLayout |
| 22 | android:id="@+id/thumbnail" |
| 23 | android:layout_width="wrap_content" |
| 24 | android:layout_height="wrap_content" |
| 25 | android:layout_alignParentLeft="true" |
| 26 | android:layout_centerVertical="true"> |
| 27 | |
| 28 | <ImageView |
| 29 | android:src="@drawable/ic_attachment_holo_light" |
Mindy Pereira | 43d62dc | 2011-12-13 10:41:19 -0800 | [diff] [blame] | 30 | style="@style/AttachmentThumbnail"/> |
Mindy Pereira | 1a73ea8 | 2011-12-13 10:12:27 -0800 | [diff] [blame] | 31 | |
| 32 | <!-- Attachment preview --> |
| 33 | <ImageView android:id="@+id/attachment_thumbnail" |
Mindy Pereira | 43d62dc | 2011-12-13 10:41:19 -0800 | [diff] [blame] | 34 | style="@style/AttachmentThumbnail"/> |
Mindy Pereira | 1a73ea8 | 2011-12-13 10:12:27 -0800 | [diff] [blame] | 35 | |
| 36 | </FrameLayout> |
| 37 | |
| 38 | <!-- Attachment name and size --> |
| 39 | <LinearLayout |
| 40 | android:orientation="vertical" |
| 41 | android:layout_width="wrap_content" |
| 42 | android:layout_height="wrap_content" |
| 43 | android:layout_centerVertical="true" |
| 44 | android:layout_toRightOf="@+id/thumbnail"> |
| 45 | |
| 46 | <TextView android:id="@+id/attachment_name" |
Mindy Pereira | 43d62dc | 2011-12-13 10:41:19 -0800 | [diff] [blame] | 47 | style="@style/AttachmentName" /> |
Mindy Pereira | 1a73ea8 | 2011-12-13 10:12:27 -0800 | [diff] [blame] | 48 | |
| 49 | <TextView android:id="@+id/attachment_size" |
Mindy Pereira | 43d62dc | 2011-12-13 10:41:19 -0800 | [diff] [blame] | 50 | style="@style/AttachmentSize" /> |
Mindy Pereira | 1a73ea8 | 2011-12-13 10:12:27 -0800 | [diff] [blame] | 51 | |
| 52 | </LinearLayout> |
| 53 | |
| 54 | <!-- Remove button --> |
| 55 | <ImageView android:id="@+id/remove_attachment" |
| 56 | android:src="@drawable/ic_cancel_holo_light" |
| 57 | android:layout_width="24dip" |
| 58 | android:layout_height="24dip" |
| 59 | android:layout_alignParentRight="true" |
| 60 | android:layout_marginRight="8dip" |
| 61 | android:clickable="true" |
| 62 | android:layout_centerVertical="true"/> |
| 63 | |
| 64 | |
| 65 | </RelativeLayout> |