1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 ~ Copyright (C) 2023 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 18<androidx.constraintlayout.widget.ConstraintLayout 19 xmlns:android="http://schemas.android.com/apk/res/android" 20 xmlns:app="http://schemas.android.com/apk/res-auto" 21 xmlns:tools="http://schemas.android.com/tools" 22 android:id="@+id/a11y_shortcut_option_container" 23 android:layout_width="match_parent" 24 android:layout_height="wrap_content" 25 android:gravity="center_vertical" 26 android:minHeight="?android:attr/listPreferredItemHeight" 27 android:paddingStart="?android:attr/listPreferredItemPaddingStart" 28 android:paddingEnd="?android:attr/listPreferredItemPaddingEnd" 29 android:paddingBottom="?android:attr/listPreferredItemPaddingEnd"> 30 31 <CheckBox 32 android:id="@android:id/checkbox" 33 android:layout_width="wrap_content" 34 android:layout_height="wrap_content" 35 android:background="@null" 36 android:clickable="false" 37 android:focusable="false" 38 android:gravity="center_vertical" 39 android:orientation="vertical" 40 app:layout_constrainedHeight="true" 41 app:layout_constrainedWidth="true" 42 app:layout_constraintBottom_toBottomOf="@android:id/title" 43 app:layout_constraintStart_toStartOf="parent" 44 app:layout_constraintTop_toTopOf="parent" /> 45 46 <TextView 47 android:id="@android:id/title" 48 android:layout_width="0dp" 49 android:layout_height="wrap_content" 50 android:layout_marginStart="?android:attr/listPreferredItemPaddingStart" 51 android:hyphenationFrequency="normalFast" 52 android:lineBreakWordStyle="phrase" 53 android:textAppearance="?android:attr/textAppearanceLarge" 54 app:layout_constraintEnd_toEndOf="parent" 55 app:layout_constraintStart_toEndOf="@android:id/checkbox" 56 app:layout_constraintTop_toTopOf="parent" 57 tools:text="Shortcut option title" /> 58 59 <TextView 60 android:id="@android:id/summary" 61 android:layout_width="0dp" 62 android:layout_height="wrap_content" 63 android:hyphenationFrequency="normalFast" 64 android:lineBreakWordStyle="phrase" 65 android:textAppearance="?android:attr/textAppearanceSmall" 66 android:textColor="?android:attr/textColorSecondary" 67 app:layout_constrainedHeight="true" 68 app:layout_constraintEnd_toEndOf="parent" 69 app:layout_constraintStart_toStartOf="@android:id/title" 70 app:layout_constraintTop_toBottomOf="@android:id/title" 71 tools:text="Shortcut option summary" /> 72 73 <com.airbnb.lottie.LottieAnimationView 74 android:id="@+id/image" 75 android:layout_width="0dp" 76 android:layout_height="wrap_content" 77 android:layout_marginTop="@dimen/settingslib_illustration_padding" 78 android:layout_marginBottom="@dimen/settingslib_illustration_padding" 79 android:adjustViewBounds="true" 80 android:maxHeight="@dimen/accessibility_imageview_size" 81 android:scaleType="fitStart" 82 app:layout_constrainedHeight="true" 83 app:layout_constraintEnd_toEndOf="parent" 84 app:layout_constraintHorizontal_bias="0" 85 app:layout_constraintStart_toStartOf="@android:id/title" 86 app:layout_constraintTop_toBottomOf="@android:id/summary" 87 app:layout_constraintWidth_max="@dimen/settingslib_illustration_width" /> 88 89</androidx.constraintlayout.widget.ConstraintLayout>