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 android:layout_width="match_parent" 21 android:layout_height="wrap_content" 22 android:paddingHorizontal="@dimen/customization_option_entry_horizontal_padding" 23 android:paddingVertical="@dimen/customization_option_entry_vertical_padding" 24 android:clickable="true"> 25 26 <TextView 27 style="@style/CustomizationOptionEntryTitleTextStyle" 28 android:layout_width="0dp" 29 android:layout_height="wrap_content" 30 android:text="@string/clock_title" 31 android:layout_marginEnd="@dimen/customization_option_entry_text_margin_end" 32 app:layout_constraintStart_toStartOf="parent" 33 app:layout_constraintEnd_toStartOf="@+id/option_entry_clock_icon_container" 34 app:layout_constraintBottom_toBottomOf="parent" 35 app:layout_constraintTop_toTopOf="parent" 36 app:layout_constraintVertical_chainStyle="packed" /> 37 38 <FrameLayout 39 android:id="@+id/option_entry_clock_icon_container" 40 android:layout_width="@dimen/customization_option_entry_icon_size" 41 android:layout_height="@dimen/customization_option_entry_icon_size" 42 android:background="@drawable/customization_option_entry_icon_background" 43 app:layout_constraintEnd_toEndOf="parent" 44 app:layout_constraintTop_toTopOf="parent" 45 app:layout_constraintBottom_toBottomOf="parent"> 46 47 <ImageView 48 android:id="@+id/option_entry_clock_icon" 49 android:layout_width="@dimen/customization_option_entry_clock_icon_size" 50 android:layout_height="@dimen/customization_option_entry_clock_icon_size" 51 android:layout_gravity="center"/> 52 </FrameLayout> 53</androidx.constraintlayout.widget.ConstraintLayout> 54