Matt Pietal | 2223179 | 2020-01-23 09:51:09 -0500 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- |
| 3 | Copyright (C) 2020 The Android Open Source Project |
| 4 | |
| 5 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | you may not use this file except in compliance with the License. |
| 7 | You may obtain a copy of the License at |
| 8 | |
| 9 | http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | |
| 11 | Unless required by applicable law or agreed to in writing, software |
| 12 | distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | See the License for the specific language governing permissions and |
| 15 | limitations under the License. |
| 16 | --> |
| 17 | <androidx.constraintlayout.widget.ConstraintLayout |
| 18 | xmlns:android="http://schemas.android.com/apk/res/android" |
| 19 | xmlns:app="http://schemas.android.com/apk/res-auto" |
| 20 | android:layout_width="0dp" |
| 21 | android:layout_weight="1" |
| 22 | android:layout_height="@dimen/control_height" |
| 23 | android:padding="@dimen/control_padding" |
Matt Pietal | 31ec9f2 | 2020-03-12 09:02:17 -0400 | [diff] [blame] | 24 | android:clickable="false" |
Matt Pietal | 2223179 | 2020-01-23 09:51:09 -0500 | [diff] [blame] | 25 | android:focusable="true" |
Matt Pietal | 31ec9f2 | 2020-03-12 09:02:17 -0400 | [diff] [blame] | 26 | android:screenReaderFocusable="true" |
Lucas Dupin | 6843f57 | 2020-04-13 14:42:43 -0700 | [diff] [blame] | 27 | android:stateListAnimator="@anim/control_state_list_animator" |
Fabian Kozynski | 5fc5f6b | 2020-02-03 15:21:14 -0500 | [diff] [blame] | 28 | android:layout_marginLeft="@dimen/control_base_item_margin" |
| 29 | android:layout_marginRight="@dimen/control_base_item_margin" |
Matt Pietal | 2223179 | 2020-01-23 09:51:09 -0500 | [diff] [blame] | 30 | android:background="@drawable/control_background"> |
| 31 | |
| 32 | <ImageView |
| 33 | android:id="@+id/icon" |
Matt Pietal | f8cc0fa | 2020-03-26 08:48:50 -0400 | [diff] [blame] | 34 | android:layout_width="@dimen/control_icon_size" |
| 35 | android:layout_height="@dimen/control_icon_size" |
Matt Pietal | 8f8953e | 2020-03-05 08:32:28 -0500 | [diff] [blame] | 36 | android:paddingTop="@dimen/control_padding_adjustment" |
Matt Pietal | 31ec9f2 | 2020-03-12 09:02:17 -0400 | [diff] [blame] | 37 | android:clickable="false" |
| 38 | android:focusable="false" |
Matt Pietal | 2223179 | 2020-01-23 09:51:09 -0500 | [diff] [blame] | 39 | app:layout_constraintStart_toStartOf="parent" |
| 40 | app:layout_constraintTop_toTopOf="parent" /> |
| 41 | |
| 42 | <TextView |
| 43 | android:id="@+id/status" |
Matt Pietal | 5f478c7 | 2020-04-01 15:53:54 -0400 | [diff] [blame] | 44 | android:layout_width="0dp" |
Matt Pietal | 2223179 | 2020-01-23 09:51:09 -0500 | [diff] [blame] | 45 | android:layout_height="wrap_content" |
Fabian Kozynski | 5fc5f6b | 2020-02-03 15:21:14 -0500 | [diff] [blame] | 46 | android:textAppearance="@style/TextAppearance.Control.Status" |
Matt Pietal | 8f8953e | 2020-03-05 08:32:28 -0500 | [diff] [blame] | 47 | android:paddingTop="@dimen/control_padding_adjustment" |
Fabian Kozynski | 5fc5f6b | 2020-02-03 15:21:14 -0500 | [diff] [blame] | 48 | android:paddingStart="@dimen/control_status_padding" |
Matt Pietal | 269a7b4 | 2020-04-10 10:46:02 -0400 | [diff] [blame] | 49 | android:screenReaderFocusable="false" |
| 50 | android:clickable="false" |
Matt Pietal | 31ec9f2 | 2020-03-12 09:02:17 -0400 | [diff] [blame] | 51 | android:focusable="false" |
Matt Pietal | 5f478c7 | 2020-04-01 15:53:54 -0400 | [diff] [blame] | 52 | android:singleLine="true" |
| 53 | android:ellipsize="marquee" |
| 54 | android:marqueeRepeatLimit = "marquee_forever" |
Fabian Kozynski | 7c9aa46 | 2020-06-09 10:27:14 -0400 | [diff] [blame] | 55 | android:textDirection="locale" |
Matt Pietal | 5f478c7 | 2020-04-01 15:53:54 -0400 | [diff] [blame] | 56 | app:layout_constraintEnd_toEndOf="parent" |
Matt Pietal | 2223179 | 2020-01-23 09:51:09 -0500 | [diff] [blame] | 57 | app:layout_constraintBottom_toBottomOf="@+id/icon" |
| 58 | app:layout_constraintStart_toEndOf="@+id/icon" /> |
| 59 | |
Matt Pietal | 2223179 | 2020-01-23 09:51:09 -0500 | [diff] [blame] | 60 | <TextView |
| 61 | android:id="@+id/title" |
Fabian Kozynski | 9b972e8 | 2020-03-26 14:33:11 -0400 | [diff] [blame] | 62 | android:layout_width="match_parent" |
Matt Pietal | 2223179 | 2020-01-23 09:51:09 -0500 | [diff] [blame] | 63 | android:layout_height="wrap_content" |
Fabian Kozynski | 5fc5f6b | 2020-02-03 15:21:14 -0500 | [diff] [blame] | 64 | android:textAppearance="@style/TextAppearance.Control.Title" |
Matt Pietal | 8f8953e | 2020-03-05 08:32:28 -0500 | [diff] [blame] | 65 | android:paddingLeft="@dimen/control_padding_adjustment" |
| 66 | android:paddingRight="@dimen/control_padding_adjustment" |
Matt Pietal | 31ec9f2 | 2020-03-12 09:02:17 -0400 | [diff] [blame] | 67 | android:clickable="false" |
| 68 | android:focusable="false" |
Matt Pietal | 8587826 | 2020-03-18 15:34:46 -0400 | [diff] [blame] | 69 | android:maxLines="1" |
| 70 | android:ellipsize="end" |
Fabian Kozynski | 7c9aa46 | 2020-06-09 10:27:14 -0400 | [diff] [blame] | 71 | android:textDirection="locale" |
Fabian Kozynski | 9b972e8 | 2020-03-26 14:33:11 -0400 | [diff] [blame] | 72 | app:layout_constraintStart_toStartOf="parent" |
| 73 | app:layout_constraintEnd_toEndOf="parent" |
| 74 | app:layout_constraintBottom_toTopOf="@id/barrier"/> |
| 75 | |
| 76 | <androidx.constraintlayout.widget.Barrier |
| 77 | android:id="@+id/barrier" |
| 78 | android:layout_width="wrap_content" |
| 79 | android:layout_height="wrap_content" |
| 80 | app:barrierDirection="top" |
| 81 | app:constraint_referenced_ids="subtitle,favorite" /> |
Matt Pietal | 2223179 | 2020-01-23 09:51:09 -0500 | [diff] [blame] | 82 | |
| 83 | <TextView |
| 84 | android:id="@+id/subtitle" |
Fabian Kozynski | 9b972e8 | 2020-03-26 14:33:11 -0400 | [diff] [blame] | 85 | android:layout_width="0dp" |
Matt Pietal | 2223179 | 2020-01-23 09:51:09 -0500 | [diff] [blame] | 86 | android:layout_height="wrap_content" |
Fabian Kozynski | 5fc5f6b | 2020-02-03 15:21:14 -0500 | [diff] [blame] | 87 | android:textAppearance="@style/TextAppearance.Control.Subtitle" |
Matt Pietal | 8f8953e | 2020-03-05 08:32:28 -0500 | [diff] [blame] | 88 | android:paddingLeft="@dimen/control_padding_adjustment" |
| 89 | android:paddingRight="@dimen/control_padding_adjustment" |
| 90 | android:paddingBottom="@dimen/control_padding_adjustment" |
Matt Pietal | 31ec9f2 | 2020-03-12 09:02:17 -0400 | [diff] [blame] | 91 | android:clickable="false" |
| 92 | android:focusable="false" |
Matt Pietal | 8587826 | 2020-03-18 15:34:46 -0400 | [diff] [blame] | 93 | android:maxLines="1" |
| 94 | android:ellipsize="end" |
Fabian Kozynski | 7c9aa46 | 2020-06-09 10:27:14 -0400 | [diff] [blame] | 95 | android:textDirection="locale" |
Fabian Kozynski | 9b972e8 | 2020-03-26 14:33:11 -0400 | [diff] [blame] | 96 | app:layout_constraintStart_toStartOf="parent" |
| 97 | app:layout_constraintEnd_toStartOf="@id/favorite" |
Fabian Kozynski | bac4388 | 2020-04-24 15:24:59 -0400 | [diff] [blame] | 98 | app:layout_constraintTop_toTopOf="@id/favorite" |
Fabian Kozynski | 9b972e8 | 2020-03-26 14:33:11 -0400 | [diff] [blame] | 99 | /> |
Fabian Kozynski | 5fc5f6b | 2020-02-03 15:21:14 -0500 | [diff] [blame] | 100 | |
Fabian Kozynski | 9b972e8 | 2020-03-26 14:33:11 -0400 | [diff] [blame] | 101 | <CheckBox |
| 102 | android:id="@+id/favorite" |
Fabian Kozynski | bac4388 | 2020-04-24 15:24:59 -0400 | [diff] [blame] | 103 | android:visibility="invisible" |
Fabian Kozynski | 6936cd1 | 2020-04-30 12:14:03 -0400 | [diff] [blame] | 104 | android:layout_width="@dimen/controls_management_checkbox_size" |
| 105 | android:layout_height="@dimen/controls_management_checkbox_size" |
| 106 | android:minHeight="0dp" |
| 107 | android:minWidth="0dp" |
| 108 | android:gravity="center" |
Fabian Kozynski | aa1e548 | 2020-04-02 11:22:01 -0400 | [diff] [blame] | 109 | android:background="@android:color/transparent" |
| 110 | android:clickable="false" |
| 111 | android:selectable="false" |
| 112 | android:importantForAccessibility="no" |
Fabian Kozynski | 9b972e8 | 2020-03-26 14:33:11 -0400 | [diff] [blame] | 113 | app:layout_constraintStart_toEndOf="@id/subtitle" |
Fabian Kozynski | 5fc5f6b | 2020-02-03 15:21:14 -0500 | [diff] [blame] | 114 | app:layout_constraintEnd_toEndOf="parent" |
Fabian Kozynski | 9b972e8 | 2020-03-26 14:33:11 -0400 | [diff] [blame] | 115 | app:layout_constraintBottom_toBottomOf="parent"/> |
Fabian Kozynski | 443149b | 2020-02-28 14:14:32 -0500 | [diff] [blame] | 116 | |
Matt Pietal | 2223179 | 2020-01-23 09:51:09 -0500 | [diff] [blame] | 117 | </androidx.constraintlayout.widget.ConstraintLayout> |