• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?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"
23    android:focusable="true"
24    android:background="@drawable/attachment_bg_holo">
25
26    <include layout="@layout/attachment_preview"/>
27
28    <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
37    <LinearLayout
38        android:id="@+id/attachment_tile_text_container"
39        android:layout_width="match_parent"
40        android:layout_height="wrap_content"
41        android:layout_above="@id/attachment_progress"
42        android:layout_alignWithParentIfMissing="true"
43        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
76    <View
77        android:id="@+id/attachment_tile_push_state"
78        android:layout_width="match_parent"
79        android:layout_height="match_parent"
80        android:duplicateParentState="true"
81        android:background="?android:attr/selectableItemBackground" />
82
83</com.android.mail.browse.MessageAttachmentTile>
84