blob: d659e4b5fbc6a3876e0949bc9b75651b96ed7f52 [file] [log] [blame]
Andrew Sapperstein4aa1c132012-06-08 17:53:41 -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.browse.MessageAttachmentTile
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"
Yu Ping Hu88a48f32013-01-29 16:16:36 -080023 android:focusable="true"
Andrew Sapperstein4aa1c132012-06-08 17:53:41 -070024 android:background="@drawable/attachment_bg_holo">
25
mindyp484e4e32012-09-10 16:34:23 -070026 <include layout="@layout/attachment_preview"/>
Andrew Sapperstein4aa1c132012-06-08 17:53:41 -070027
Paul Westbrook90528f42012-10-13 12:21:58 -070028 <ProgressBar
29 android:id="@+id/attachment_progress"
30 style="?android:attr/progressBarStyleHorizontal"
31 android:layout_height="wrap_content"
32 android:layout_width="match_parent"
33 android:layout_alignParentBottom="true"
34 android:indeterminate="true"
35 android:visibility="gone" />
36
Andrew Sappersteinafff6d72012-06-25 18:55:00 -070037 <LinearLayout
38 android:id="@+id/attachment_tile_text_container"
39 android:layout_width="match_parent"
40 android:layout_height="wrap_content"
Paul Westbrook90528f42012-10-13 12:21:58 -070041 android:layout_above="@id/attachment_progress"
42 android:layout_alignWithParentIfMissing="true"
Andrew Sappersteinafff6d72012-06-25 18:55:00 -070043 android:orientation="vertical"
44 android:gravity="center_vertical"
45 android:paddingLeft="8dip"
46 android:paddingRight="4dip">
47
48 <TextView
49 android:id="@+id/attachment_tile_title"
50 android:layout_width="wrap_content"
51 android:layout_height="wrap_content"
52 android:textColor="@android:color/black"
53 android:includeFontPadding="false"
54 android:textSize="16sp"
55 android:singleLine="true"
56 android:fadingEdge="horizontal"
57 android:fadingEdgeLength="3dip"
58 android:ellipsize="marquee" />
59
60 <TextView
61 android:id="@+id/attachment_tile_subtitle"
62 android:layout_width="wrap_content"
63 android:layout_height="wrap_content"
64 android:textAppearance="?android:attr/textAppearanceSmall"
65 android:textColor="@color/attachment_tile_subtitle_color"
66 android:includeFontPadding="false"
67 android:textSize="12sp"
68 android:singleLine="true"
69 android:paddingBottom="4dip"
70 android:fadingEdge="horizontal"
71 android:fadingEdgeLength="3dip"
72 android:ellipsize="marquee" />
73
74 </LinearLayout>
75
Andrew Sapperstein4aa1c132012-06-08 17:53:41 -070076 <View
77 android:id="@+id/attachment_tile_push_state"
78 android:layout_width="match_parent"
79 android:layout_height="match_parent"
Yu Ping Hu88a48f32013-01-29 16:16:36 -080080 android:duplicateParentState="true"
Andrew Sapperstein4aa1c132012-06-08 17:53:41 -070081 android:background="?android:attr/selectableItemBackground" />
82
83</com.android.mail.browse.MessageAttachmentTile>