blob: 6ca4c03585f1b729a54b2e27c4a93345dc0ef57b [file] [log] [blame]
Mindy Pereira1a73ea82011-12-13 10:12:27 -08001<?xml version="1.0" encoding="utf-8"?>
Vikram Aggarwal5e5ac742011-12-19 08:14:16 -08002<!--
3 Copyright (C) 2011 Google Inc.
4 Licensed to The Android Open Source Project.
Mindy Pereira1a73ea82011-12-13 10:12:27 -08005
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 Sappersteinb5783602013-10-02 11:37:31 -070018<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
mindypd8401e42012-09-10 16:09:16 -070019 style="@style/AttachmentContainer"
20 android:focusableInTouchMode="true"
21 android:focusable="true">
Mindy Pereira1a73ea82011-12-13 10:12:27 -080022
Andrew Sappersteindc783fb2012-07-30 18:45:02 -070023 <ImageView
Mindy Pereira1a73ea82011-12-13 10:12:27 -080024 android:id="@+id/thumbnail"
Andrew Sapperstein26407712014-07-01 16:11:03 -070025 android:src="@drawable/ic_attach_file_20dp"
Andrew Sappersteina839fd02014-04-22 14:33:55 -070026 android:layout_gravity="center_vertical"
27 style="@style/AttachmentThumbnail"/>
Mindy Pereira1a73ea82011-12-13 10:12:27 -080028
29 <!-- Attachment name and size -->
30 <LinearLayout
31 android:orientation="vertical"
Andrew Sappersteina839fd02014-04-22 14:33:55 -070032 android:layout_width="0dip"
Mindy Pereira1a73ea82011-12-13 10:12:27 -080033 android:layout_height="wrap_content"
Andrew Sappersteinb5783602013-10-02 11:37:31 -070034 android:layout_weight="1"
Andrew Sappersteina839fd02014-04-22 14:33:55 -070035 android:layout_gravity="center_vertical"
36 style="@style/AttachmentTextContainer" >
Mindy Pereira1a73ea82011-12-13 10:12:27 -080037
38 <TextView android:id="@+id/attachment_name"
Mindy Pereira43d62dc2011-12-13 10:41:19 -080039 style="@style/AttachmentName" />
Mindy Pereira1a73ea82011-12-13 10:12:27 -080040
41 <TextView android:id="@+id/attachment_size"
Mindy Pereira43d62dc2011-12-13 10:41:19 -080042 style="@style/AttachmentSize" />
Mindy Pereira1a73ea82011-12-13 10:12:27 -080043
44 </LinearLayout>
45
46 <!-- Remove button -->
Mindy Pereirac1831192012-06-12 12:41:34 -070047 <ImageButton android:id="@+id/remove_attachment"
Mindy Pereira1a73ea82011-12-13 10:12:27 -080048 android:src="@drawable/ic_cancel_holo_light"
Andrew Sappersteina839fd02014-04-22 14:33:55 -070049 android:layout_width="48dip"
Mindy Pereirac1831192012-06-12 12:41:34 -070050 android:layout_height="match_parent"
Mindy Pereira1a73ea82011-12-13 10:12:27 -080051 android:clickable="true"
Andrew Sappersteinb5783602013-10-02 11:37:31 -070052 android:gravity="center"
Mindy Pereirac1831192012-06-12 12:41:34 -070053 android:background="?android:attr/selectableItemBackground"/>
Mindy Pereira1a73ea82011-12-13 10:12:27 -080054
55
Andrew Sappersteinb5783602013-10-02 11:37:31 -070056</LinearLayout>