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 | --> |
Andrew Sapperstein | b578360 | 2013-10-02 11:37:31 -0700 | [diff] [blame] | 18 | <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
mindyp | d8401e4 | 2012-09-10 16:09:16 -0700 | [diff] [blame] | 19 | style="@style/AttachmentContainer" |
| 20 | android:focusableInTouchMode="true" |
| 21 | android:focusable="true"> |
Mindy Pereira | 1a73ea8 | 2011-12-13 10:12:27 -0800 | [diff] [blame] | 22 | |
Andrew Sapperstein | dc783fb | 2012-07-30 18:45:02 -0700 | [diff] [blame] | 23 | <ImageView |
Mindy Pereira | 1a73ea8 | 2011-12-13 10:12:27 -0800 | [diff] [blame] | 24 | android:id="@+id/thumbnail" |
Andrew Sapperstein | 2640771 | 2014-07-01 16:11:03 -0700 | [diff] [blame] | 25 | android:src="@drawable/ic_attach_file_20dp" |
Andrew Sapperstein | a839fd0 | 2014-04-22 14:33:55 -0700 | [diff] [blame] | 26 | android:layout_gravity="center_vertical" |
| 27 | style="@style/AttachmentThumbnail"/> |
Mindy Pereira | 1a73ea8 | 2011-12-13 10:12:27 -0800 | [diff] [blame] | 28 | |
| 29 | <!-- Attachment name and size --> |
| 30 | <LinearLayout |
| 31 | android:orientation="vertical" |
Andrew Sapperstein | a839fd0 | 2014-04-22 14:33:55 -0700 | [diff] [blame] | 32 | android:layout_width="0dip" |
Mindy Pereira | 1a73ea8 | 2011-12-13 10:12:27 -0800 | [diff] [blame] | 33 | android:layout_height="wrap_content" |
Andrew Sapperstein | b578360 | 2013-10-02 11:37:31 -0700 | [diff] [blame] | 34 | android:layout_weight="1" |
Andrew Sapperstein | a839fd0 | 2014-04-22 14:33:55 -0700 | [diff] [blame] | 35 | android:layout_gravity="center_vertical" |
| 36 | style="@style/AttachmentTextContainer" > |
Mindy Pereira | 1a73ea8 | 2011-12-13 10:12:27 -0800 | [diff] [blame] | 37 | |
| 38 | <TextView android:id="@+id/attachment_name" |
Mindy Pereira | 43d62dc | 2011-12-13 10:41:19 -0800 | [diff] [blame] | 39 | style="@style/AttachmentName" /> |
Mindy Pereira | 1a73ea8 | 2011-12-13 10:12:27 -0800 | [diff] [blame] | 40 | |
| 41 | <TextView android:id="@+id/attachment_size" |
Mindy Pereira | 43d62dc | 2011-12-13 10:41:19 -0800 | [diff] [blame] | 42 | style="@style/AttachmentSize" /> |
Mindy Pereira | 1a73ea8 | 2011-12-13 10:12:27 -0800 | [diff] [blame] | 43 | |
| 44 | </LinearLayout> |
| 45 | |
| 46 | <!-- Remove button --> |
Mindy Pereira | c183119 | 2012-06-12 12:41:34 -0700 | [diff] [blame] | 47 | <ImageButton android:id="@+id/remove_attachment" |
Mindy Pereira | 1a73ea8 | 2011-12-13 10:12:27 -0800 | [diff] [blame] | 48 | android:src="@drawable/ic_cancel_holo_light" |
Andrew Sapperstein | a839fd0 | 2014-04-22 14:33:55 -0700 | [diff] [blame] | 49 | android:layout_width="48dip" |
Mindy Pereira | c183119 | 2012-06-12 12:41:34 -0700 | [diff] [blame] | 50 | android:layout_height="match_parent" |
Mindy Pereira | 1a73ea8 | 2011-12-13 10:12:27 -0800 | [diff] [blame] | 51 | android:clickable="true" |
Andrew Sapperstein | b578360 | 2013-10-02 11:37:31 -0700 | [diff] [blame] | 52 | android:gravity="center" |
Mindy Pereira | c183119 | 2012-06-12 12:41:34 -0700 | [diff] [blame] | 53 | android:background="?android:attr/selectableItemBackground"/> |
Mindy Pereira | 1a73ea8 | 2011-12-13 10:12:27 -0800 | [diff] [blame] | 54 | |
| 55 | |
Andrew Sapperstein | b578360 | 2013-10-02 11:37:31 -0700 | [diff] [blame] | 56 | </LinearLayout> |