Fabian Kozynski | 5fc5f6b | 2020-02-03 15:21:14 -0500 | [diff] [blame] | 1 | <?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 Kozynski | 6936cd1 | 2020-04-30 12:14:03 -0400 | [diff] [blame] | 19 | android:layout_height="64dp" |
Fabian Kozynski | 5fc5f6b | 2020-02-03 15:21:14 -0500 | [diff] [blame] | 20 | android:background="?android:attr/selectableItemBackground"> |
| 21 | |
| 22 | <LinearLayout |
| 23 | android:layout_width="match_parent" |
Fabian Kozynski | 6936cd1 | 2020-04-30 12:14:03 -0400 | [diff] [blame] | 24 | android:layout_height="match_parent" |
Fabian Kozynski | 5fc5f6b | 2020-02-03 15:21:14 -0500 | [diff] [blame] | 25 | android:layout_gravity="start|top" |
Fabian Kozynski | 6936cd1 | 2020-04-30 12:14:03 -0400 | [diff] [blame] | 26 | android:gravity="center_vertical"> |
Fabian Kozynski | 5fc5f6b | 2020-02-03 15:21:14 -0500 | [diff] [blame] | 27 | |
| 28 | <FrameLayout |
| 29 | android:id="@+id/icon_frame" |
| 30 | android:layout_width="wrap_content" |
Fabian Kozynski | 6936cd1 | 2020-04-30 12:14:03 -0400 | [diff] [blame] | 31 | android:layout_height="match_parent" |
Fabian Kozynski | 5fc5f6b | 2020-02-03 15:21:14 -0500 | [diff] [blame] | 32 | android:orientation="horizontal" |
Fabian Kozynski | 6936cd1 | 2020-04-30 12:14:03 -0400 | [diff] [blame] | 33 | android:paddingEnd="@dimen/controls_app_icon_frame_side_padding"> |
Fabian Kozynski | 5fc5f6b | 2020-02-03 15:21:14 -0500 | [diff] [blame] | 34 | |
| 35 | <ImageView |
| 36 | android:id="@android:id/icon" |
Fabian Kozynski | 6936cd1 | 2020-04-30 12:14:03 -0400 | [diff] [blame] | 37 | android:layout_gravity="start|center_vertical" |
Fabian Kozynski | 5fc5f6b | 2020-02-03 15:21:14 -0500 | [diff] [blame] | 38 | 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 Kozynski | 6936cd1 | 2020-04-30 12:14:03 -0400 | [diff] [blame] | 46 | android:orientation="vertical"> |
Fabian Kozynski | 5fc5f6b | 2020-02-03 15:21:14 -0500 | [diff] [blame] | 47 | |
| 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 Kozynski | 6936cd1 | 2020-04-30 12:14:03 -0400 | [diff] [blame] | 55 | android:textAppearance="@style/TextAppearance.Control.Management.Subtitle"/> |
Fabian Kozynski | 5fc5f6b | 2020-02-03 15:21:14 -0500 | [diff] [blame] | 56 | |
| 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 Kozynski | 5fc5f6b | 2020-02-03 15:21:14 -0500 | [diff] [blame] | 73 | android:background="?android:attr/listDivider" /> |
| 74 | </FrameLayout> |