1<?xml version="1.0" encoding="utf-8"?><!-- 2 ~ Copyright (C) 2024 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 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 xmlns:tools="http://schemas.android.com/tools" 21 android:layout_width="match_parent" 22 android:layout_height="wrap_content" 23 android:paddingHorizontal="@dimen/customization_option_entry_horizontal_padding" 24 android:paddingVertical="@dimen/customization_option_entry_vertical_padding" 25 android:clickable="true"> 26 27 <TextView 28 android:id="@+id/option_entry_themed_icons_title" 29 style="@style/SectionTitleTextStyle" 30 android:layout_width="0dp" 31 android:layout_height="wrap_content" 32 android:text="@string/themed_icon_title" 33 android:layout_marginEnd="@dimen/customization_option_entry_text_margin_end" 34 app:layout_constraintStart_toStartOf="parent" 35 app:layout_constraintEnd_toStartOf="@+id/option_entry_themed_icons_switch" 36 app:layout_constraintBottom_toTopOf="@+id/option_entry_themed_icons_description" 37 app:layout_constraintTop_toTopOf="parent" 38 app:layout_constraintVertical_chainStyle="packed" /> 39 40 <TextView 41 android:id="@+id/option_entry_themed_icons_description" 42 style="@style/SectionSubtitleTextStyle" 43 android:layout_width="0dp" 44 android:layout_height="wrap_content" 45 android:layout_marginEnd="@dimen/customization_option_entry_text_margin_end" 46 android:text="@string/beta_title" 47 app:layout_constraintBottom_toBottomOf="parent" 48 app:layout_constraintEnd_toStartOf="@+id/option_entry_themed_icons_switch" 49 app:layout_constraintStart_toStartOf="parent" 50 app:layout_constraintTop_toBottomOf="@+id/option_entry_themed_icons_title" /> 51 52 <Switch 53 android:id="@+id/option_entry_themed_icons_switch" 54 android:layout_width="wrap_content" 55 android:layout_height="wrap_content" 56 android:focusable="false" 57 android:clickable="false" 58 app:layout_constraintTop_toTopOf="parent" 59 app:layout_constraintBottom_toBottomOf="parent" 60 app:layout_constraintEnd_toEndOf="parent" 61 style="@style/Switch.SettingsLib" 62 tools:ignore="UseSwitchCompatOrMaterialXml" /> 63</androidx.constraintlayout.widget.ConstraintLayout>