blob: c576669d8958f72078c6a85483e7585f250d2b0a [file] [log] [blame]
Jeff Sharkey09c10bf2013-06-30 20:02:59 -07001<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2013 The Android Open Source Project
3
4 Licensed under the Apache License, Version 2.0 (the "License");
5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at
7
8 http://www.apache.org/licenses/LICENSE-2.0
9
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
15-->
16
Jeff Sharkey083d7e12014-07-27 21:01:45 -070017<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
Jeff Sharkey09c10bf2013-06-30 20:02:59 -070018 android:layout_width="match_parent"
19 android:layout_height="wrap_content"
Jeff Sharkey7e544612014-08-29 15:38:27 -070020 android:background="@drawable/item_doc_list_background">
Jeff Sharkey09c10bf2013-06-30 20:02:59 -070021
Jeff Sharkey2e694f82013-08-06 16:26:14 -070022 <LinearLayout
Jeff Sharkey083d7e12014-07-27 21:01:45 -070023 android:layout_width="match_parent"
Jeff Sharkey2e694f82013-08-06 16:26:14 -070024 android:layout_height="wrap_content"
Jeff Sharkey083d7e12014-07-27 21:01:45 -070025 android:minHeight="@dimen/list_item_height"
26 android:paddingStart="@dimen/list_item_padding"
27 android:paddingEnd="@dimen/list_item_padding"
28 android:gravity="center_vertical"
29 android:orientation="horizontal"
30 android:baselineAligned="false">
Jeff Sharkey09c10bf2013-06-30 20:02:59 -070031
Jeff Sharkey083d7e12014-07-27 21:01:45 -070032 <FrameLayout
33 android:id="@android:id/icon"
34 android:layout_width="@dimen/icon_size"
35 android:layout_height="@dimen/icon_size"
36 android:layout_marginEnd="16dp">
Jeff Sharkey42d26792013-09-06 13:22:09 -070037
Jeff Sharkey2e694f82013-08-06 16:26:14 -070038 <ImageView
Jeff Sharkey083d7e12014-07-27 21:01:45 -070039 android:id="@+id/icon_mime"
40 android:layout_width="wrap_content"
41 android:layout_height="match_parent"
Jeff Sharkey2e694f82013-08-06 16:26:14 -070042 android:scaleType="centerInside"
43 android:contentDescription="@null" />
44
Jeff Sharkey083d7e12014-07-27 21:01:45 -070045 <ImageView
46 android:id="@+id/icon_thumb"
47 android:layout_width="match_parent"
48 android:layout_height="match_parent"
49 android:scaleType="centerCrop"
50 android:contentDescription="@null" />
51
52 </FrameLayout>
Jeff Sharkey42d26792013-09-06 13:22:09 -070053
54 <LinearLayout
Jeff Sharkey083d7e12014-07-27 21:01:45 -070055 android:layout_width="0dp"
Jeff Sharkey42d26792013-09-06 13:22:09 -070056 android:layout_height="wrap_content"
Jeff Sharkey083d7e12014-07-27 21:01:45 -070057 android:layout_weight="1"
58 android:orientation="vertical">
Jeff Sharkey42d26792013-09-06 13:22:09 -070059
Jeff Sharkey083d7e12014-07-27 21:01:45 -070060 <LinearLayout
61 android:layout_width="match_parent"
Jeff Sharkey2e694f82013-08-06 16:26:14 -070062 android:layout_height="wrap_content"
Jeff Sharkey083d7e12014-07-27 21:01:45 -070063 android:orientation="horizontal"
64 android:baselineAligned="false">
Jeff Sharkey2e694f82013-08-06 16:26:14 -070065
Jeff Sharkey083d7e12014-07-27 21:01:45 -070066 <TextView
67 android:id="@android:id/title"
68 android:layout_width="0dp"
69 android:layout_height="wrap_content"
70 android:layout_weight="1"
71 android:singleLine="true"
72 android:ellipsize="middle"
73 android:textAlignment="viewStart"
74 android:textAppearance="@android:style/TextAppearance.Material.Subhead"
75 android:textColor="?android:attr/textColorPrimary" />
Jeff Sharkey2e694f82013-08-06 16:26:14 -070076
Jeff Sharkey083d7e12014-07-27 21:01:45 -070077 <ImageView
78 android:id="@android:id/icon1"
79 android:layout_width="@dimen/root_icon_size"
80 android:layout_height="@dimen/root_icon_size"
81 android:layout_marginStart="8dp"
82 android:scaleType="centerInside"
83 android:contentDescription="@null" />
84
85 </LinearLayout>
86
87 <LinearLayout
88 android:id="@+id/line2"
89 android:layout_width="match_parent"
Jeff Sharkey2e694f82013-08-06 16:26:14 -070090 android:layout_height="wrap_content"
Jeff Sharkey083d7e12014-07-27 21:01:45 -070091 android:gravity="center_vertical"
92 android:orientation="horizontal"
93 android:baselineAligned="false">
94
95 <TextView
96 android:id="@+id/date"
97 android:layout_width="90dp"
98 android:layout_height="wrap_content"
99 android:singleLine="true"
100 android:ellipsize="end"
101 android:textAlignment="viewStart"
102 android:textAppearance="@android:style/TextAppearance.Material.Body1"
103 android:textColor="?android:attr/textColorSecondary" />
104
105 <TextView
106 android:id="@+id/size"
107 android:layout_width="90dp"
108 android:layout_height="wrap_content"
109 android:layout_marginStart="8dp"
110 android:singleLine="true"
111 android:ellipsize="end"
112 android:textAlignment="viewStart"
113 android:textAppearance="@android:style/TextAppearance.Material.Body1"
114 android:textColor="?android:attr/textColorSecondary" />
115
116 <TextView
117 android:id="@android:id/summary"
118 android:layout_width="0dp"
119 android:layout_height="wrap_content"
120 android:layout_weight="1"
121 android:layout_marginStart="8dp"
122 android:singleLine="true"
123 android:ellipsize="end"
124 android:textAlignment="viewStart"
125 android:textAppearance="@android:style/TextAppearance.Material.Body1"
126 android:textColor="?android:attr/textColorSecondary" />
127
128 </LinearLayout>
Jeff Sharkey2e694f82013-08-06 16:26:14 -0700129
130 </LinearLayout>
131
132 </LinearLayout>
133
Jeff Sharkey083d7e12014-07-27 21:01:45 -0700134</FrameLayout>