<?xml version="1.0" encoding="utf-8"?>
<!--
  ~ Copyright (C) 2024 The Android Open Source Project
  ~
  ~ Licensed under the Apache License, Version 2.0 (the "License");
  ~ you may not use this file except in compliance with the License.
  ~ You may obtain a copy of the License at
  ~
  ~      http://www.apache.org/licenses/LICENSE-2.0
  ~
  ~ Unless required by applicable law or agreed to in writing, software
  ~ distributed under the License is distributed on an "AS IS" BASIS,
  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  ~ See the License for the specific language governing permissions and
  ~ limitations under the License.
  -->

<!-- A direct copy of the SettingsLib SettingsTheme/res/layout-v33/settingslib_preference.xml,
  ~  SettingsLib/SettingsTheme/res/layout-v31/settingslib_icon_frame.xml
  ~  with overlayable styles
  -->
<com.android.permissioncontroller.permission.ui.handheld.v35.DrawableStateLinearLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    style="@style/PermissionPreferenceRootLayoutStyle">

    <LinearLayout
        android:id="@+id/icon_frame"
        style="@style/PermissionPreferenceIconFrameStyle">

        <androidx.preference.internal.PreferenceImageView
            android:id="@android:id/icon"
            style="@style/PermissionPreferenceIconStyle"/>

    </LinearLayout>

    <RelativeLayout
        style="@style/PermissionPreferenceTextRelativeLayoutStyle">

        <TextView
            android:id="@android:id/title"
            style="@style/PermissionPreferenceTitleTextStyle"/>

        <TextView
            android:id="@android:id/summary"
            style="@style/PermissionPreferenceSummaryTextStyle"/>

    </RelativeLayout>

    <!-- Preference should place its actual preference widget here. -->
    <LinearLayout
        android:id="@android:id/widget_frame"
        style="@style/PermissionPreferenceWidgetFrameLayoutStyle"/>

</com.android.permissioncontroller.permission.ui.handheld.v35.DrawableStateLinearLayout>
