Jeff Sharkey | 54e55b7 | 2013-06-30 20:02:59 -0700 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
Ben Kwa | ddc3d21 | 2016-01-07 18:50:34 -0800 | [diff] [blame] | 2 | <!-- |
| 3 | Copyright (C) 2013 The Android Open Source Project |
Jeff Sharkey | 54e55b7 | 2013-06-30 20:02:59 -0700 | [diff] [blame] | 4 | |
| 5 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | you may not use this file except in compliance with the License. |
| 7 | You may obtain a copy of the License at |
| 8 | |
| 9 | http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | |
| 11 | Unless required by applicable law or agreed to in writing, software |
| 12 | distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | See the License for the specific language governing permissions and |
| 15 | limitations under the License. |
| 16 | --> |
| 17 | |
Ben Kwa | d7915d2 | 2015-10-26 11:54:41 -0700 | [diff] [blame] | 18 | <com.android.documentsui.ListItem xmlns:android="http://schemas.android.com/apk/res/android" |
Jeff Sharkey | 54e55b7 | 2013-06-30 20:02:59 -0700 | [diff] [blame] | 19 | android:layout_width="match_parent" |
| 20 | android:layout_height="wrap_content" |
Ben Kwa | d27906e | 2015-11-10 21:02:47 -0800 | [diff] [blame] | 21 | android:background="@color/item_doc_background" |
Ben Kwa | ddc3d21 | 2016-01-07 18:50:34 -0800 | [diff] [blame] | 22 | android:focusable="true" |
| 23 | android:orientation="horizontal" > |
Ben Kwa | d27906e | 2015-11-10 21:02:47 -0800 | [diff] [blame] | 24 | |
Ben Kwa | bd96456 | 2015-10-14 08:00:27 -0700 | [diff] [blame] | 25 | <View |
| 26 | android:id="@+id/focus_indicator" |
| 27 | android:layout_width="4dp" |
| 28 | android:layout_height="match_parent" /> |
Jeff Sharkey | 54e55b7 | 2013-06-30 20:02:59 -0700 | [diff] [blame] | 29 | |
Jeff Sharkey | b156f4b | 2013-08-06 16:26:14 -0700 | [diff] [blame] | 30 | <LinearLayout |
Jeff Sharkey | 6963148 | 2014-07-27 21:01:45 -0700 | [diff] [blame] | 31 | android:layout_width="match_parent" |
Jeff Sharkey | b156f4b | 2013-08-06 16:26:14 -0700 | [diff] [blame] | 32 | android:layout_height="wrap_content" |
Ben Kwa | ddc3d21 | 2016-01-07 18:50:34 -0800 | [diff] [blame] | 33 | android:baselineAligned="false" |
Jeff Sharkey | 6963148 | 2014-07-27 21:01:45 -0700 | [diff] [blame] | 34 | android:gravity="center_vertical" |
Ben Kwa | ddc3d21 | 2016-01-07 18:50:34 -0800 | [diff] [blame] | 35 | android:minHeight="@dimen/list_item_height" |
Jeff Sharkey | 6963148 | 2014-07-27 21:01:45 -0700 | [diff] [blame] | 36 | android:orientation="horizontal" |
Ben Kwa | ddc3d21 | 2016-01-07 18:50:34 -0800 | [diff] [blame] | 37 | android:paddingEnd="@dimen/list_item_padding" |
| 38 | android:paddingStart="@dimen/list_item_padding" > |
Jeff Sharkey | 54e55b7 | 2013-06-30 20:02:59 -0700 | [diff] [blame] | 39 | |
Jeff Sharkey | 6963148 | 2014-07-27 21:01:45 -0700 | [diff] [blame] | 40 | <FrameLayout |
| 41 | android:id="@android:id/icon" |
Ben Kwa | ddc3d21 | 2016-01-07 18:50:34 -0800 | [diff] [blame] | 42 | android:layout_width="@dimen/list_item_thumbnail_size" |
| 43 | android:layout_height="@dimen/list_item_thumbnail_size" |
| 44 | android:layout_marginEnd="16dp" > |
Jeff Sharkey | 28c05ee | 2013-09-06 13:22:09 -0700 | [diff] [blame] | 45 | |
Jeff Sharkey | b156f4b | 2013-08-06 16:26:14 -0700 | [diff] [blame] | 46 | <ImageView |
Jeff Sharkey | 6963148 | 2014-07-27 21:01:45 -0700 | [diff] [blame] | 47 | android:id="@+id/icon_mime" |
| 48 | android:layout_width="wrap_content" |
Ben Kwa | ddc3d21 | 2016-01-07 18:50:34 -0800 | [diff] [blame] | 49 | android:layout_height="wrap_content" |
| 50 | android:layout_gravity="center" |
| 51 | android:contentDescription="@null" |
| 52 | android:scaleType="centerInside" /> |
Jeff Sharkey | b156f4b | 2013-08-06 16:26:14 -0700 | [diff] [blame] | 53 | |
Jeff Sharkey | 6963148 | 2014-07-27 21:01:45 -0700 | [diff] [blame] | 54 | <ImageView |
| 55 | android:id="@+id/icon_thumb" |
| 56 | android:layout_width="match_parent" |
| 57 | android:layout_height="match_parent" |
Ben Kwa | ddc3d21 | 2016-01-07 18:50:34 -0800 | [diff] [blame] | 58 | android:contentDescription="@null" |
| 59 | android:scaleType="centerCrop" /> |
Jeff Sharkey | 6963148 | 2014-07-27 21:01:45 -0700 | [diff] [blame] | 60 | |
Ben Kwa | ddc3d21 | 2016-01-07 18:50:34 -0800 | [diff] [blame] | 61 | <ImageView |
| 62 | android:id="@+id/icon_check" |
| 63 | android:layout_width="@dimen/check_icon_size" |
| 64 | android:layout_height="@dimen/check_icon_size" |
| 65 | android:layout_gravity="center" |
| 66 | android:alpha="0" |
| 67 | android:contentDescription="@null" |
| 68 | android:scaleType="fitCenter" |
| 69 | android:src="@drawable/ic_check_circle" /> |
Jeff Sharkey | 6963148 | 2014-07-27 21:01:45 -0700 | [diff] [blame] | 70 | </FrameLayout> |
Jeff Sharkey | 28c05ee | 2013-09-06 13:22:09 -0700 | [diff] [blame] | 71 | |
| 72 | <LinearLayout |
Jeff Sharkey | 6963148 | 2014-07-27 21:01:45 -0700 | [diff] [blame] | 73 | android:layout_width="0dp" |
Jeff Sharkey | 28c05ee | 2013-09-06 13:22:09 -0700 | [diff] [blame] | 74 | android:layout_height="wrap_content" |
Jeff Sharkey | 6963148 | 2014-07-27 21:01:45 -0700 | [diff] [blame] | 75 | android:layout_weight="1" |
Ben Kwa | ddc3d21 | 2016-01-07 18:50:34 -0800 | [diff] [blame] | 76 | android:orientation="vertical" > |
Jeff Sharkey | 28c05ee | 2013-09-06 13:22:09 -0700 | [diff] [blame] | 77 | |
Ben Kwa | ddc3d21 | 2016-01-07 18:50:34 -0800 | [diff] [blame] | 78 | <TextView |
| 79 | android:id="@android:id/title" |
| 80 | android:layout_width="wrap_content" |
| 81 | android:layout_height="0dp" |
| 82 | android:layout_weight="1" |
Steve McKay | da48a9a | 2016-02-24 12:57:06 -0800 | [diff] [blame] | 83 | android:ellipsize="end" |
Ben Kwa | ddc3d21 | 2016-01-07 18:50:34 -0800 | [diff] [blame] | 84 | android:singleLine="true" |
| 85 | android:textAlignment="viewStart" |
| 86 | android:textAppearance="@android:style/TextAppearance.Material.Subhead" |
| 87 | android:textColor="?android:attr/textColorPrimary" /> |
Jeff Sharkey | 6963148 | 2014-07-27 21:01:45 -0700 | [diff] [blame] | 88 | |
| 89 | <LinearLayout |
| 90 | android:id="@+id/line2" |
| 91 | android:layout_width="match_parent" |
Jeff Sharkey | b156f4b | 2013-08-06 16:26:14 -0700 | [diff] [blame] | 92 | android:layout_height="wrap_content" |
Ben Kwa | ddc3d21 | 2016-01-07 18:50:34 -0800 | [diff] [blame] | 93 | android:baselineAligned="false" |
Jeff Sharkey | 6963148 | 2014-07-27 21:01:45 -0700 | [diff] [blame] | 94 | android:gravity="center_vertical" |
Ben Kwa | ddc3d21 | 2016-01-07 18:50:34 -0800 | [diff] [blame] | 95 | android:orientation="horizontal" > |
Jeff Sharkey | 6963148 | 2014-07-27 21:01:45 -0700 | [diff] [blame] | 96 | |
| 97 | <TextView |
| 98 | android:id="@+id/date" |
| 99 | android:layout_width="90dp" |
| 100 | android:layout_height="wrap_content" |
Jeff Sharkey | 6963148 | 2014-07-27 21:01:45 -0700 | [diff] [blame] | 101 | android:ellipsize="end" |
Ben Kwa | ddc3d21 | 2016-01-07 18:50:34 -0800 | [diff] [blame] | 102 | android:singleLine="true" |
Jeff Sharkey | 6963148 | 2014-07-27 21:01:45 -0700 | [diff] [blame] | 103 | android:textAlignment="viewStart" |
| 104 | android:textAppearance="@android:style/TextAppearance.Material.Body1" |
| 105 | android:textColor="?android:attr/textColorSecondary" /> |
| 106 | |
| 107 | <TextView |
| 108 | android:id="@+id/size" |
| 109 | android:layout_width="90dp" |
| 110 | android:layout_height="wrap_content" |
| 111 | android:layout_marginStart="8dp" |
Jeff Sharkey | 6963148 | 2014-07-27 21:01:45 -0700 | [diff] [blame] | 112 | android:ellipsize="end" |
Ben Kwa | ddc3d21 | 2016-01-07 18:50:34 -0800 | [diff] [blame] | 113 | android:singleLine="true" |
Jeff Sharkey | 6963148 | 2014-07-27 21:01:45 -0700 | [diff] [blame] | 114 | android:textAlignment="viewStart" |
| 115 | android:textAppearance="@android:style/TextAppearance.Material.Body1" |
| 116 | android:textColor="?android:attr/textColorSecondary" /> |
| 117 | |
| 118 | <TextView |
| 119 | android:id="@android:id/summary" |
| 120 | android:layout_width="0dp" |
| 121 | android:layout_height="wrap_content" |
Jeff Sharkey | 6963148 | 2014-07-27 21:01:45 -0700 | [diff] [blame] | 122 | android:layout_marginStart="8dp" |
Ben Kwa | ddc3d21 | 2016-01-07 18:50:34 -0800 | [diff] [blame] | 123 | android:layout_weight="1" |
Jeff Sharkey | 6963148 | 2014-07-27 21:01:45 -0700 | [diff] [blame] | 124 | android:ellipsize="end" |
Ben Kwa | ddc3d21 | 2016-01-07 18:50:34 -0800 | [diff] [blame] | 125 | android:singleLine="true" |
Jeff Sharkey | 6963148 | 2014-07-27 21:01:45 -0700 | [diff] [blame] | 126 | android:textAlignment="viewStart" |
| 127 | android:textAppearance="@android:style/TextAppearance.Material.Body1" |
| 128 | android:textColor="?android:attr/textColorSecondary" /> |
Jeff Sharkey | 6963148 | 2014-07-27 21:01:45 -0700 | [diff] [blame] | 129 | </LinearLayout> |
Jeff Sharkey | b156f4b | 2013-08-06 16:26:14 -0700 | [diff] [blame] | 130 | </LinearLayout> |
Jeff Sharkey | b156f4b | 2013-08-06 16:26:14 -0700 | [diff] [blame] | 131 | </LinearLayout> |
| 132 | |
Ben Kwa | d7915d2 | 2015-10-26 11:54:41 -0700 | [diff] [blame] | 133 | </com.android.documentsui.ListItem> |