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 style="@style/SectionTitleTextStyle" 29 android:layout_width="0dp" 30 android:layout_height="wrap_content" 31 android:text="@string/show_notifications_on_lock_screen" 32 android:layout_marginEnd="@dimen/customization_option_entry_text_margin_end" 33 app:layout_constraintStart_toStartOf="parent" 34 app:layout_constraintEnd_toStartOf="@+id/option_entry_show_notifications_switch" 35 app:layout_constraintBottom_toBottomOf="parent" 36 app:layout_constraintTop_toTopOf="parent" 37 app:layout_constraintVertical_chainStyle="packed" /> 38 39 <Switch 40 android:id="@+id/option_entry_show_notifications_switch" 41 android:layout_width="wrap_content" 42 android:layout_height="wrap_content" 43 android:focusable="false" 44 android:clickable="false" 45 app:layout_constraintTop_toTopOf="parent" 46 app:layout_constraintBottom_toBottomOf="parent" 47 app:layout_constraintEnd_toEndOf="parent" 48 style="@style/Switch.SettingsLib" 49 tools:ignore="UseSwitchCompatOrMaterialXml" /> 50</androidx.constraintlayout.widget.ConstraintLayout>