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<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 18 android:id="@+id/switch_icon_title_container" 19 android:layout_width="match_parent" 20 android:layout_height="wrap_content" 21 android:gravity="center_vertical" 22 android:duplicateParentState="true" 23 android:orientation="horizontal"> 24 25 <include layout="@layout/core_slice_preference" /> 26 27 <Switch 28 android:id="@android:id/switch_widget" 29 android:layout_width="@dimen/switch_width" 30 android:layout_height="@dimen/switch_height" 31 android:background="@null" 32 android:clickable="false" 33 android:duplicateParentState="true" 34 android:focusable="false" 35 android:thumb="@drawable/custom_switch_thumb" 36 android:track="@drawable/custom_switch_track" /> 37</LinearLayout>