blob: 81880f397cafd307c3195dc73ea5b5e776d017ba [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-->
18<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
Mindy Pereira43d62dc2011-12-13 10:41:19 -080019 style="@style/AttachmentContainer">
Mindy Pereira1a73ea82011-12-13 10:12:27 -080020
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 Pereira43d62dc2011-12-13 10:41:19 -080030 style="@style/AttachmentThumbnail"/>
Mindy Pereira1a73ea82011-12-13 10:12:27 -080031
32 <!-- Attachment preview -->
33 <ImageView android:id="@+id/attachment_thumbnail"
Mindy Pereira43d62dc2011-12-13 10:41:19 -080034 style="@style/AttachmentThumbnail"/>
Mindy Pereira1a73ea82011-12-13 10:12:27 -080035
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 Pereira43d62dc2011-12-13 10:41:19 -080047 style="@style/AttachmentName" />
Mindy Pereira1a73ea82011-12-13 10:12:27 -080048
49 <TextView android:id="@+id/attachment_size"
Mindy Pereira43d62dc2011-12-13 10:41:19 -080050 style="@style/AttachmentSize" />
Mindy Pereira1a73ea82011-12-13 10:12:27 -080051
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>