blob: bd50273a610f36696d275f3b15e499893042a8db [file] [log] [blame]
Julia Reynoldsf7748e42015-09-29 08:15:43 -04001<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2015 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<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
17 android:layout_width="match_parent"
18 android:layout_height="wrap_content"
19 android:minHeight="?android:attr/listPreferredItemHeight"
20 android:gravity="center_vertical"
21 android:paddingEnd="?android:attr/scrollbarSize"
22 android:background="?android:attr/selectableItemBackground" >
23
24 <ImageView
25 android:id="@+id/icon"
Beverly036d7e02018-02-01 18:14:33 -050026 android:layout_width="@dimen/app_icon_size"
27 android:layout_height="@dimen/app_icon_size"
28 android:layout_gravity="center"/>
Julia Reynoldsf7748e42015-09-29 08:15:43 -040029
30 <RelativeLayout
31 android:layout_width="wrap_content"
32 android:layout_height="wrap_content"
33 android:layout_marginStart="15dip"
34 android:layout_marginEnd="6dip"
35 android:layout_marginTop="6dip"
36 android:layout_marginBottom="6dip"
37 android:layout_weight="1">
38
39 <TextView android:id="@+id/title"
40 android:layout_width="wrap_content"
41 android:layout_height="wrap_content"
42 android:singleLine="true"
43 android:textSize="16sp"
44 android:ellipsize="marquee"
Amin Shaikha5e8bdd2018-12-19 14:42:59 -050045 android:textAppearance="@*android:style/TextAppearance.DeviceDefault.Body1"
Julia Reynoldsf7748e42015-09-29 08:15:43 -040046 android:fadingEdge="horizontal" />
47
48 <TextView android:id="@+id/subtitle"
49 android:layout_width="wrap_content"
50 android:layout_height="wrap_content"
51 android:layout_below="@id/title"
52 android:layout_alignStart="@id/title"
53 android:textSize="14sp"
54 android:textColor="?android:attr/textColorSecondary"
Amin Shaikha5e8bdd2018-12-19 14:42:59 -050055 android:textAppearance="@*android:style/TextAppearance.DeviceDefault.Subhead"
Julia Reynoldsf7748e42015-09-29 08:15:43 -040056 android:maxLines="2"
57 android:visibility="gone" />
58
59 </RelativeLayout>
60
61</LinearLayout>