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 | 2e694f8 | 2013-08-06 16:26:14 -0700 | [diff] [blame^] | 17 | <LinearLayout 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 | c317af8 | 2013-07-01 16:56:54 -0700 | [diff] [blame] | 20 | android:background="@drawable/item_background" |
Jeff Sharkey | 09c10bf | 2013-06-30 20:02:59 -0700 | [diff] [blame] | 21 | android:minHeight="?android:attr/listPreferredItemHeight" |
| 22 | android:paddingStart="?android:attr/listPreferredItemPaddingStart" |
| 23 | android:paddingEnd="?android:attr/listPreferredItemPaddingEnd" |
| 24 | android:paddingTop="8dip" |
| 25 | android:paddingBottom="8dip" |
Jeff Sharkey | 2e694f8 | 2013-08-06 16:26:14 -0700 | [diff] [blame^] | 26 | android:orientation="horizontal"> |
Jeff Sharkey | 09c10bf | 2013-06-30 20:02:59 -0700 | [diff] [blame] | 27 | |
| 28 | <ImageView |
| 29 | android:id="@android:id/icon" |
| 30 | android:layout_width="@android:dimen/app_icon_size" |
| 31 | android:layout_height="@android:dimen/app_icon_size" |
Jeff Sharkey | 09c10bf | 2013-06-30 20:02:59 -0700 | [diff] [blame] | 32 | android:layout_marginEnd="8dip" |
Jeff Sharkey | 2e694f8 | 2013-08-06 16:26:14 -0700 | [diff] [blame^] | 33 | android:layout_gravity="center_vertical" |
Jeff Sharkey | 09c10bf | 2013-06-30 20:02:59 -0700 | [diff] [blame] | 34 | android:scaleType="centerInside" |
| 35 | android:contentDescription="@null" /> |
| 36 | |
Jeff Sharkey | 2e694f8 | 2013-08-06 16:26:14 -0700 | [diff] [blame^] | 37 | <LinearLayout |
Jeff Sharkey | 09c10bf | 2013-06-30 20:02:59 -0700 | [diff] [blame] | 38 | android:layout_width="0dip" |
Jeff Sharkey | 2e694f8 | 2013-08-06 16:26:14 -0700 | [diff] [blame^] | 39 | android:layout_height="wrap_content" |
| 40 | android:layout_weight="1" |
| 41 | android:layout_gravity="center_vertical" |
| 42 | android:orientation="vertical"> |
Jeff Sharkey | 09c10bf | 2013-06-30 20:02:59 -0700 | [diff] [blame] | 43 | |
Jeff Sharkey | 2e694f8 | 2013-08-06 16:26:14 -0700 | [diff] [blame^] | 44 | <TextView |
| 45 | android:id="@android:id/title" |
| 46 | android:layout_width="match_parent" |
| 47 | android:layout_height="wrap_content" |
| 48 | android:singleLine="true" |
| 49 | android:ellipsize="marquee" |
| 50 | android:textAppearance="?android:attr/textAppearanceMedium" |
| 51 | android:textAlignment="viewStart" /> |
Jeff Sharkey | 09c10bf | 2013-06-30 20:02:59 -0700 | [diff] [blame] | 52 | |
Jeff Sharkey | 2e694f8 | 2013-08-06 16:26:14 -0700 | [diff] [blame^] | 53 | <LinearLayout |
| 54 | android:id="@+id/line2" |
| 55 | android:layout_width="match_parent" |
| 56 | android:layout_height="wrap_content" |
| 57 | android:orientation="horizontal"> |
Jeff Sharkey | 09c10bf | 2013-06-30 20:02:59 -0700 | [diff] [blame] | 58 | |
Jeff Sharkey | 2e694f8 | 2013-08-06 16:26:14 -0700 | [diff] [blame^] | 59 | <ImageView |
| 60 | android:id="@android:id/icon1" |
| 61 | android:layout_width="24dip" |
| 62 | android:layout_height="24dip" |
| 63 | android:layout_marginEnd="6dip" |
| 64 | android:scaleType="centerInside" |
| 65 | android:contentDescription="@null" /> |
| 66 | |
| 67 | <TextView |
| 68 | android:id="@android:id/summary" |
| 69 | android:layout_width="0dp" |
| 70 | android:layout_height="wrap_content" |
| 71 | android:layout_weight="1" |
| 72 | android:layout_gravity="center_vertical" |
| 73 | android:layout_marginEnd="8dp" |
| 74 | android:singleLine="true" |
| 75 | android:ellipsize="marquee" |
| 76 | android:textAlignment="viewStart" |
| 77 | android:textAppearance="?android:attr/textAppearanceSmall" /> |
| 78 | |
| 79 | <TextView |
| 80 | android:id="@+id/size" |
| 81 | android:layout_width="70dp" |
| 82 | android:layout_height="wrap_content" |
| 83 | android:layout_gravity="center_vertical" |
| 84 | android:layout_marginEnd="8dp" |
| 85 | android:singleLine="true" |
| 86 | android:ellipsize="marquee" |
| 87 | android:textAlignment="viewEnd" |
| 88 | android:textAppearance="?android:attr/textAppearanceSmall" /> |
| 89 | |
| 90 | <TextView |
| 91 | android:id="@+id/date" |
| 92 | android:layout_width="70dp" |
| 93 | android:layout_height="wrap_content" |
| 94 | android:layout_gravity="center_vertical" |
| 95 | android:singleLine="true" |
| 96 | android:ellipsize="marquee" |
| 97 | android:textAlignment="viewEnd" |
| 98 | android:textAppearance="?android:attr/textAppearanceSmall" /> |
| 99 | |
| 100 | </LinearLayout> |
| 101 | |
| 102 | </LinearLayout> |
| 103 | |
| 104 | </LinearLayout> |