blob: a208098b59c96263ca757a59185f11303bd71595 [file] [log] [blame]
Fabian Kozynski5fc5f6b2020-02-03 15:21:14 -05001<?xml version="1.0" encoding="utf-8"?><!--
2 Copyright (C) 2019 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<FrameLayout
17 xmlns:android="http://schemas.android.com/apk/res/android"
18 android:layout_width="match_parent"
Fabian Kozynski6936cd12020-04-30 12:14:03 -040019 android:layout_height="64dp"
Fabian Kozynski5fc5f6b2020-02-03 15:21:14 -050020 android:background="?android:attr/selectableItemBackground">
21
22 <LinearLayout
23 android:layout_width="match_parent"
Fabian Kozynski6936cd12020-04-30 12:14:03 -040024 android:layout_height="match_parent"
Fabian Kozynski5fc5f6b2020-02-03 15:21:14 -050025 android:layout_gravity="start|top"
Fabian Kozynski6936cd12020-04-30 12:14:03 -040026 android:gravity="center_vertical">
Fabian Kozynski5fc5f6b2020-02-03 15:21:14 -050027
28 <FrameLayout
29 android:id="@+id/icon_frame"
30 android:layout_width="wrap_content"
Fabian Kozynski6936cd12020-04-30 12:14:03 -040031 android:layout_height="match_parent"
Fabian Kozynski5fc5f6b2020-02-03 15:21:14 -050032 android:orientation="horizontal"
Fabian Kozynski6936cd12020-04-30 12:14:03 -040033 android:paddingEnd="@dimen/controls_app_icon_frame_side_padding">
Fabian Kozynski5fc5f6b2020-02-03 15:21:14 -050034
35 <ImageView
36 android:id="@android:id/icon"
Fabian Kozynski6936cd12020-04-30 12:14:03 -040037 android:layout_gravity="start|center_vertical"
Fabian Kozynski5fc5f6b2020-02-03 15:21:14 -050038 android:layout_width="@dimen/controls_app_icon_size"
39 android:layout_height="@dimen/controls_app_icon_size" />
40 </FrameLayout>
41
42 <LinearLayout
43 android:layout_width="0dp"
44 android:layout_height="wrap_content"
45 android:layout_weight="1"
Fabian Kozynski6936cd12020-04-30 12:14:03 -040046 android:orientation="vertical">
Fabian Kozynski5fc5f6b2020-02-03 15:21:14 -050047
48 <TextView
49 android:id="@android:id/title"
50 android:layout_width="wrap_content"
51 android:layout_height="wrap_content"
52 android:ellipsize="end"
53 android:fadingEdge="horizontal"
54 android:singleLine="true"
Fabian Kozynski6936cd12020-04-30 12:14:03 -040055 android:textAppearance="@style/TextAppearance.Control.Management.Subtitle"/>
Fabian Kozynski5fc5f6b2020-02-03 15:21:14 -050056
57 <TextView
58 android:id="@+id/favorites"
59 android:layout_width="wrap_content"
60 android:layout_height="wrap_content"
61 android:ellipsize="end"
62 android:fadingEdge="horizontal"
63 android:singleLine="true"
64 android:textAppearance="?android:attr/textAppearanceSmall" />
65
66 </LinearLayout>
67
68 </LinearLayout>
69 <View
70 android:layout_width="match_parent"
71 android:layout_height="@dimen/controls_app_divider_height"
72 android:layout_gravity="center_horizontal|bottom"
Fabian Kozynski5fc5f6b2020-02-03 15:21:14 -050073 android:background="?android:attr/listDivider" />
74</FrameLayout>