blob: fd581bbdcc0640d139ab1e22bf872c0268d220bd [file] [log] [blame]
Svetoslava749ada2013-09-26 18:55:31 -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
17<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
Philip P. Moltmann83fb7952016-01-26 13:02:36 -080018 android:layout_width="fill_parent"
Svetoslava749ada2013-09-26 18:55:31 -070019 android:layout_height="wrap_content"
Fabrice Di Megliofb03ae22014-06-17 19:54:09 -070020 android:paddingStart="?android:attr/listPreferredItemPaddingStart"
21 android:paddingEnd="?android:attr/listPreferredItemPaddingEnd"
Philip P. Moltmann83fb7952016-01-26 13:02:36 -080022 android:minHeight="?android:attr/listPreferredItemHeight"
23 android:orientation="horizontal"
24 android:gravity="start|center_vertical">
Svetoslava749ada2013-09-26 18:55:31 -070025
26 <ImageView
27 android:id="@+id/icon"
Philip P. Moltmann83fb7952016-01-26 13:02:36 -080028 android:layout_width="40dip"
29 android:layout_height="40dip"
Svetoslava749ada2013-09-26 18:55:31 -070030 android:layout_gravity="center_vertical"
Svetoslava749ada2013-09-26 18:55:31 -070031 android:duplicateParentState="true"
32 android:contentDescription="@null"
Philip P. Moltmann83fb7952016-01-26 13:02:36 -080033 android:visibility="invisible">
Svetoslava749ada2013-09-26 18:55:31 -070034 </ImageView>
35
Philip P. Moltmann83fb7952016-01-26 13:02:36 -080036 <RelativeLayout
37 android:layout_width="0dip"
38 android:layout_weight="1"
Svetoslava749ada2013-09-26 18:55:31 -070039 android:layout_height="wrap_content"
Philip P. Moltmann83fb7952016-01-26 13:02:36 -080040 android:layout_gravity="center_vertical"
41 android:layout_marginStart="16dip"
42 android:duplicateParentState="true">
Svetoslava749ada2013-09-26 18:55:31 -070043
44 <TextView
45 android:id="@+id/title"
46 android:layout_width="wrap_content"
47 android:layout_height="wrap_content"
Philip P. Moltmannd9779db2016-02-24 12:11:05 -080048 android:textAppearance="?android:attr/textAppearanceListItem"
Svetoslava749ada2013-09-26 18:55:31 -070049 android:singleLine="true"
Philip P. Moltmann83fb7952016-01-26 13:02:36 -080050 android:ellipsize="end"
Philip P. Moltmannd9779db2016-02-24 12:11:05 -080051 android:duplicateParentState="true" />
Svetoslava749ada2013-09-26 18:55:31 -070052
53 <TextView
54 android:id="@+id/subtitle"
55 android:layout_width="wrap_content"
56 android:layout_height="wrap_content"
Philip P. Moltmann83fb7952016-01-26 13:02:36 -080057 android:layout_below="@id/title"
Philip P. Moltmannd9779db2016-02-24 12:11:05 -080058 android:textAppearance="?android:attr/textAppearanceListItemSecondary"
59 android:textColor="?android:attr/textColorSecondary"
Svetoslava749ada2013-09-26 18:55:31 -070060 android:singleLine="true"
61 android:ellipsize="end"
Svetoslava749ada2013-09-26 18:55:31 -070062 android:visibility="gone"
Philip P. Moltmannd9779db2016-02-24 12:11:05 -080063 android:duplicateParentState="true" />
Svetoslava749ada2013-09-26 18:55:31 -070064
Philip P. Moltmann83fb7952016-01-26 13:02:36 -080065 </RelativeLayout>
66
Philip P. Moltmannd9779db2016-02-24 12:11:05 -080067 <!-- wrapper for image view to increase the touch target size -->
68 <LinearLayout
Philip P. Moltmann83fb7952016-01-26 13:02:36 -080069 android:id="@+id/more_info"
70 android:layout_width="wrap_content"
Philip P. Moltmannd9779db2016-02-24 12:11:05 -080071 android:layout_height="fill_parent"
Philip P. Moltmann83fb7952016-01-26 13:02:36 -080072 android:visibility="gone">
Philip P. Moltmannd9779db2016-02-24 12:11:05 -080073
74 <ImageView
75 android:layout_width="wrap_content"
76 android:layout_height="wrap_content"
77 android:layout_gravity="center_vertical"
78 android:paddingLeft="16dip"
79 android:contentDescription="@string/printer_info_desc"
Philip P. Moltmanna5918a62018-08-30 11:07:33 -070080 android:src="@*android:drawable/ic_info"
Philip P. Moltmannd9779db2016-02-24 12:11:05 -080081 android:tint="?android:attr/colorControlNormal"
82 android:tintMode="src_in" />
83
84 </LinearLayout>
Svetoslava749ada2013-09-26 18:55:31 -070085
86</LinearLayout>