Jeff Sharkey | 09c10bf | 2013-06-30 20:02:59 -0700 | [diff] [blame] | 1 | <?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 Sharkey | 083d7e1 | 2014-07-27 21:01:45 -0700 | [diff] [blame] | 17 | <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" |
Jeff Sharkey | 09c10bf | 2013-06-30 20:02:59 -0700 | [diff] [blame] | 18 | android:layout_width="match_parent" |
| 19 | android:layout_height="wrap_content" |
Jeff Sharkey | 7e54461 | 2014-08-29 15:38:27 -0700 | [diff] [blame] | 20 | android:background="@drawable/item_doc_list_background"> |
Jeff Sharkey | 09c10bf | 2013-06-30 20:02:59 -0700 | [diff] [blame] | 21 | |
Jeff Sharkey | 2e694f8 | 2013-08-06 16:26:14 -0700 | [diff] [blame] | 22 | <LinearLayout |
Jeff Sharkey | 083d7e1 | 2014-07-27 21:01:45 -0700 | [diff] [blame] | 23 | android:layout_width="match_parent" |
Jeff Sharkey | 2e694f8 | 2013-08-06 16:26:14 -0700 | [diff] [blame] | 24 | android:layout_height="wrap_content" |
Jeff Sharkey | 083d7e1 | 2014-07-27 21:01:45 -0700 | [diff] [blame] | 25 | 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 Sharkey | 09c10bf | 2013-06-30 20:02:59 -0700 | [diff] [blame] | 31 | |
Jeff Sharkey | 083d7e1 | 2014-07-27 21:01:45 -0700 | [diff] [blame] | 32 | <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 Sharkey | 42d2679 | 2013-09-06 13:22:09 -0700 | [diff] [blame] | 37 | |
Jeff Sharkey | 2e694f8 | 2013-08-06 16:26:14 -0700 | [diff] [blame] | 38 | <ImageView |
Jeff Sharkey | 083d7e1 | 2014-07-27 21:01:45 -0700 | [diff] [blame] | 39 | android:id="@+id/icon_mime" |
| 40 | android:layout_width="wrap_content" |
| 41 | android:layout_height="match_parent" |
Jeff Sharkey | 2e694f8 | 2013-08-06 16:26:14 -0700 | [diff] [blame] | 42 | android:scaleType="centerInside" |
| 43 | android:contentDescription="@null" /> |
| 44 | |
Jeff Sharkey | 083d7e1 | 2014-07-27 21:01:45 -0700 | [diff] [blame] | 45 | <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 Sharkey | 42d2679 | 2013-09-06 13:22:09 -0700 | [diff] [blame] | 53 | |
| 54 | <LinearLayout |
Jeff Sharkey | 083d7e1 | 2014-07-27 21:01:45 -0700 | [diff] [blame] | 55 | android:layout_width="0dp" |
Jeff Sharkey | 42d2679 | 2013-09-06 13:22:09 -0700 | [diff] [blame] | 56 | android:layout_height="wrap_content" |
Jeff Sharkey | 083d7e1 | 2014-07-27 21:01:45 -0700 | [diff] [blame] | 57 | android:layout_weight="1" |
| 58 | android:orientation="vertical"> |
Jeff Sharkey | 42d2679 | 2013-09-06 13:22:09 -0700 | [diff] [blame] | 59 | |
Jeff Sharkey | 083d7e1 | 2014-07-27 21:01:45 -0700 | [diff] [blame] | 60 | <LinearLayout |
| 61 | android:layout_width="match_parent" |
Jeff Sharkey | 2e694f8 | 2013-08-06 16:26:14 -0700 | [diff] [blame] | 62 | android:layout_height="wrap_content" |
Jeff Sharkey | 083d7e1 | 2014-07-27 21:01:45 -0700 | [diff] [blame] | 63 | android:orientation="horizontal" |
| 64 | android:baselineAligned="false"> |
Jeff Sharkey | 2e694f8 | 2013-08-06 16:26:14 -0700 | [diff] [blame] | 65 | |
Jeff Sharkey | 083d7e1 | 2014-07-27 21:01:45 -0700 | [diff] [blame] | 66 | <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 Sharkey | 2e694f8 | 2013-08-06 16:26:14 -0700 | [diff] [blame] | 76 | |
Jeff Sharkey | 083d7e1 | 2014-07-27 21:01:45 -0700 | [diff] [blame] | 77 | <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 Sharkey | 2e694f8 | 2013-08-06 16:26:14 -0700 | [diff] [blame] | 90 | android:layout_height="wrap_content" |
Jeff Sharkey | 083d7e1 | 2014-07-27 21:01:45 -0700 | [diff] [blame] | 91 | 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 Sharkey | 2e694f8 | 2013-08-06 16:26:14 -0700 | [diff] [blame] | 129 | |
| 130 | </LinearLayout> |
| 131 | |
| 132 | </LinearLayout> |
| 133 | |
Jeff Sharkey | 083d7e1 | 2014-07-27 21:01:45 -0700 | [diff] [blame] | 134 | </FrameLayout> |