Mindy Pereira | 1a73ea8 | 2011-12-13 10:12:27 -0800 | [diff] [blame^] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- Copyright (C) 2008 The Android Open Source Project |
| 3 | |
| 4 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | you may not use this file except in compliance with the License. |
| 6 | You may obtain a copy of the License at |
| 7 | |
| 8 | http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | |
| 10 | Unless required by applicable law or agreed to in writing, software |
| 11 | distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | See the License for the specific language governing permissions and |
| 14 | limitations under the License. |
| 15 | --> |
| 16 | <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" |
| 17 | style="@style/attachment_container"> |
| 18 | |
| 19 | <FrameLayout |
| 20 | android:id="@+id/thumbnail" |
| 21 | android:layout_width="wrap_content" |
| 22 | android:layout_height="wrap_content" |
| 23 | android:layout_alignParentLeft="true" |
| 24 | android:layout_centerVertical="true"> |
| 25 | |
| 26 | <ImageView |
| 27 | android:src="@drawable/ic_attachment_holo_light" |
| 28 | style="@style/attachment_thumbnail"/> |
| 29 | |
| 30 | <!-- Attachment preview --> |
| 31 | <ImageView android:id="@+id/attachment_thumbnail" |
| 32 | style="@style/attachment_thumbnail"/> |
| 33 | |
| 34 | </FrameLayout> |
| 35 | |
| 36 | <!-- Attachment name and size --> |
| 37 | <LinearLayout |
| 38 | android:orientation="vertical" |
| 39 | android:layout_width="wrap_content" |
| 40 | android:layout_height="wrap_content" |
| 41 | android:layout_centerVertical="true" |
| 42 | android:layout_toRightOf="@+id/thumbnail"> |
| 43 | |
| 44 | <TextView android:id="@+id/attachment_name" |
| 45 | style="@style/attachment_name" /> |
| 46 | |
| 47 | <TextView android:id="@+id/attachment_size" |
| 48 | style="@style/attachment_size" /> |
| 49 | |
| 50 | </LinearLayout> |
| 51 | |
| 52 | <!-- Remove button --> |
| 53 | <ImageView android:id="@+id/remove_attachment" |
| 54 | android:src="@drawable/ic_cancel_holo_light" |
| 55 | android:layout_width="24dip" |
| 56 | android:layout_height="24dip" |
| 57 | android:layout_alignParentRight="true" |
| 58 | android:layout_marginRight="8dip" |
| 59 | android:clickable="true" |
| 60 | android:layout_centerVertical="true"/> |
| 61 | |
| 62 | |
| 63 | </RelativeLayout> |