blob: f3496f83ef3e3dc9ec5fec2d1ed675951dff6ece [file] [log] [blame]
Andrew Sapperstein237129d2012-06-15 11:46:30 -07001<?xml version="1.0" encoding="utf-8"?>
2<!--
3 Copyright (C) 2012 Google Inc.
4 Licensed to The Android Open Source Project.
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<com.android.mail.compose.ComposeAttachmentTile
19 xmlns:android="http://schemas.android.com/apk/res/android"
20 android:id="@+id/attachment_tile"
21 android:layout_width="wrap_content"
22 android:layout_height="wrap_content"
mindyp40882432012-09-06 11:07:40 -070023 android:background="@drawable/attachment_bg_holo"
24 android:focusable="true"
25 android:focusableInTouchMode="true">
Andrew Sapperstein237129d2012-06-15 11:46:30 -070026
mindyp484e4e32012-09-10 16:34:23 -070027 <include layout="@layout/attachment_preview"/>
Andrew Sapperstein237129d2012-06-15 11:46:30 -070028
Andrew Sappersteindb656892014-01-24 17:13:30 -080029 <LinearLayout
Andrew Sappersteinafff6d72012-06-25 18:55:00 -070030 android:layout_width="match_parent"
31 android:layout_height="wrap_content"
32 android:background="@color/attachment_tile_shadow_box_color"
33 android:layout_alignParentBottom="true"
34 android:gravity="center_vertical"
Andrew Sappersteindb656892014-01-24 17:13:30 -080035 style="@style/AttachmentTextContainer" >
Andrew Sappersteinafff6d72012-06-25 18:55:00 -070036
37 <LinearLayout
Andrew Sappersteindb656892014-01-24 17:13:30 -080038 android:layout_width="0dip"
Andrew Sappersteinafff6d72012-06-25 18:55:00 -070039 android:layout_height="wrap_content"
Andrew Sappersteindb656892014-01-24 17:13:30 -080040 android:layout_weight="1"
Andrew Sappersteinafff6d72012-06-25 18:55:00 -070041 android:orientation="vertical"
42 android:gravity="center_vertical"
Andrew Sappersteindb656892014-01-24 17:13:30 -080043 android:layout_gravity="center_vertical"
44 style="@style/ComposeAttachmentTileTextEndStyle">
Andrew Sappersteinafff6d72012-06-25 18:55:00 -070045
46 <TextView
47 android:id="@+id/attachment_tile_title"
48 android:layout_width="wrap_content"
49 android:layout_height="wrap_content"
50 android:textColor="@android:color/white"
51 android:includeFontPadding="false"
52 android:textSize="16sp"
53 android:singleLine="true"
54 android:fadingEdge="horizontal"
55 android:fadingEdgeLength="3dip"
56 android:ellipsize="marquee" />
57
58 <TextView
59 android:id="@+id/attachment_tile_subtitle"
60 android:layout_width="wrap_content"
61 android:layout_height="wrap_content"
62 android:textAppearance="?android:attr/textAppearanceSmall"
63 android:textColor="@android:color/white"
64 android:includeFontPadding="false"
65 android:textSize="12sp"
66 android:singleLine="true"
67 android:fadingEdge="horizontal"
68 android:fadingEdgeLength="3dip"
69 android:ellipsize="marquee" />
70
71 </LinearLayout>
72
73 <ImageButton
Andrew Sappersteindb656892014-01-24 17:13:30 -080074 android:id="@+id/attachment_tile_close_button"
Jin Cao0c998d42014-08-13 16:46:39 -070075 android:src="@drawable/ic_cancel_wht"
Andrew Sappersteinafff6d72012-06-25 18:55:00 -070076 android:layout_width="44dip"
77 android:layout_height="44dip"
Andrew Sappersteindb656892014-01-24 17:13:30 -080078 android:layout_gravity="center_vertical|end|right"
Andrew Sappersteinafff6d72012-06-25 18:55:00 -070079 android:gravity="center"
80 android:focusable="true"
Andrew Sappersteindb656892014-01-24 17:13:30 -080081 android:background="?android:attr/selectableItemBackground" />
Andrew Sappersteinafff6d72012-06-25 18:55:00 -070082
Andrew Sappersteindb656892014-01-24 17:13:30 -080083 </LinearLayout>
Andrew Sapperstein237129d2012-06-15 11:46:30 -070084
85</com.android.mail.compose.ComposeAttachmentTile>