Svetoslav Ganov | ed513d7e | 2013-10-17 09:53:05 -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 | |
| 17 | <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
Svetoslav | a798c0a | 2014-05-15 10:47:19 -0700 | [diff] [blame] | 18 | android:layout_width="fill_parent" |
| 19 | android:layout_height="wrap_content" |
| 20 | android:paddingStart="?android:attr/listPreferredItemPaddingStart" |
| 21 | android:paddingEnd="?android:attr/listPreferredItemPaddingEnd" |
| 22 | android:minHeight="?android:attr/listPreferredItemHeight" |
| 23 | android:orientation="horizontal" |
| 24 | android:gravity="start|center_vertical"> |
Svetoslav Ganov | ed513d7e | 2013-10-17 09:53:05 -0700 | [diff] [blame] | 25 | |
| 26 | <ImageView |
| 27 | android:id="@+id/icon" |
Philip P. Moltmann | 443075a | 2016-01-26 13:04:21 -0800 | [diff] [blame] | 28 | android:layout_width="40dip" |
| 29 | android:layout_height="40dip" |
Svetoslav Ganov | ed513d7e | 2013-10-17 09:53:05 -0700 | [diff] [blame] | 30 | android:layout_gravity="center_vertical" |
Philip P. Moltmann | 443075a | 2016-01-26 13:04:21 -0800 | [diff] [blame] | 31 | android:layout_marginTop="8dip" |
| 32 | android:layout_marginBottom="8dip" |
Svetoslav Ganov | ed513d7e | 2013-10-17 09:53:05 -0700 | [diff] [blame] | 33 | android:duplicateParentState="true" |
| 34 | android:contentDescription="@null" |
Svetoslav | a798c0a | 2014-05-15 10:47:19 -0700 | [diff] [blame] | 35 | android:visibility="invisible"> |
Svetoslav Ganov | ed513d7e | 2013-10-17 09:53:05 -0700 | [diff] [blame] | 36 | </ImageView> |
| 37 | |
Philip P. Moltmann | 443075a | 2016-01-26 13:04:21 -0800 | [diff] [blame] | 38 | <RelativeLayout |
| 39 | android:layout_width="0dip" |
Philip P. Moltmann | bb9f686 | 2015-12-01 14:44:24 -0800 | [diff] [blame] | 40 | android:layout_weight="1" |
Philip P. Moltmann | 443075a | 2016-01-26 13:04:21 -0800 | [diff] [blame] | 41 | android:layout_height="wrap_content" |
| 42 | android:layout_gravity="center_vertical" |
| 43 | android:layout_marginStart="16dip" |
Svetoslav Ganov | ed513d7e | 2013-10-17 09:53:05 -0700 | [diff] [blame] | 44 | android:duplicateParentState="true"> |
| 45 | |
| 46 | <TextView |
| 47 | android:id="@+id/title" |
| 48 | android:layout_width="wrap_content" |
| 49 | android:layout_height="wrap_content" |
| 50 | android:textAppearance="?android:attr/textAppearanceMedium" |
| 51 | android:singleLine="true" |
| 52 | android:ellipsize="end" |
| 53 | android:textIsSelectable="false" |
Philip P. Moltmann | 443075a | 2016-01-26 13:04:21 -0800 | [diff] [blame] | 54 | android:layout_alignParentTop="true" |
| 55 | android:layout_alignParentStart="true" |
| 56 | android:fadingEdge="horizontal" |
| 57 | android:textAlignment="viewStart" |
Svetoslav | 283203e | 2014-07-15 13:56:29 -0700 | [diff] [blame] | 58 | android:textColor="?android:attr/textColorPrimary" |
Svetoslav Ganov | ed513d7e | 2013-10-17 09:53:05 -0700 | [diff] [blame] | 59 | android:duplicateParentState="true"> |
| 60 | </TextView> |
| 61 | |
| 62 | <TextView |
| 63 | android:id="@+id/subtitle" |
| 64 | android:layout_width="wrap_content" |
| 65 | android:layout_height="wrap_content" |
Philip P. Moltmann | 443075a | 2016-01-26 13:04:21 -0800 | [diff] [blame] | 66 | android:layout_below="@id/title" |
| 67 | android:layout_alignParentStart="true" |
Svetoslav Ganov | ed513d7e | 2013-10-17 09:53:05 -0700 | [diff] [blame] | 68 | android:textAppearance="?android:attr/textAppearanceSmall" |
| 69 | android:singleLine="true" |
| 70 | android:ellipsize="end" |
| 71 | android:textIsSelectable="false" |
| 72 | android:visibility="gone" |
Philip P. Moltmann | bb9f686 | 2015-12-01 14:44:24 -0800 | [diff] [blame] | 73 | android:textColor="?android:attr/textColorSecondary" |
Philip P. Moltmann | 443075a | 2016-01-26 13:04:21 -0800 | [diff] [blame] | 74 | android:textAlignment="viewStart" |
Svetoslav Ganov | ed513d7e | 2013-10-17 09:53:05 -0700 | [diff] [blame] | 75 | android:duplicateParentState="true"> |
| 76 | </TextView> |
| 77 | |
Philip P. Moltmann | 443075a | 2016-01-26 13:04:21 -0800 | [diff] [blame] | 78 | </RelativeLayout> |
Svetoslav Ganov | ed513d7e | 2013-10-17 09:53:05 -0700 | [diff] [blame] | 79 | |
Philip P. Moltmann | bb9f686 | 2015-12-01 14:44:24 -0800 | [diff] [blame] | 80 | <ImageView |
| 81 | android:id="@+id/more_info" |
Philip P. Moltmann | 443075a | 2016-01-26 13:04:21 -0800 | [diff] [blame] | 82 | android:layout_width="wrap_content" |
| 83 | android:layout_height="wrap_content" |
Philip P. Moltmann | bb9f686 | 2015-12-01 14:44:24 -0800 | [diff] [blame] | 84 | android:layout_gravity="center_vertical" |
Philip P. Moltmann | 443075a | 2016-01-26 13:04:21 -0800 | [diff] [blame] | 85 | android:paddingLeft="16dip" |
Philip P. Moltmann | bb9f686 | 2015-12-01 14:44:24 -0800 | [diff] [blame] | 86 | android:contentDescription="@string/printer_info_desc" |
| 87 | android:src="@drawable/ic_info" |
Philip P. Moltmann | 443075a | 2016-01-26 13:04:21 -0800 | [diff] [blame] | 88 | android:tint="?android:attr/colorControlNormal" |
| 89 | android:tintMode="src_in" |
Philip P. Moltmann | bb9f686 | 2015-12-01 14:44:24 -0800 | [diff] [blame] | 90 | android:visibility="gone"> |
| 91 | </ImageView> |
| 92 | |
Svetoslav Ganov | ed513d7e | 2013-10-17 09:53:05 -0700 | [diff] [blame] | 93 | </LinearLayout> |