<?xml version="1.0" encoding="UTF-8"?>
<!--
    Copyright (C) 2025 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.
-->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:id="@+id/sud_items_expandable_content"
    style="?attr/sudItemContainerStyle"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:baselineAligned="false"
    android:orientation="vertical"
    android:filterTouchesWhenObscured="true">

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginTop="@dimen/sud_items_expand_title_container_margin_top"
        android:layout_marginBottom="@dimen/sud_items_expand_title_container_margin_bottom"
        android:baselineAligned="false"
        android:orientation="horizontal">

        <FrameLayout
            android:id="@+id/sud_items_icon_container"
            style="?attr/sudItemIconContainerStyle"
            android:layout_height="wrap_content"
            android:layout_gravity="center_vertical"
            android:gravity="start">

            <ImageView
                android:id="@+id/sud_items_icon"
                style="?attr/sudItemIconStyle"
                android:layout_height="wrap_content"
                tools:ignore="ContentDescription" />

        </FrameLayout>

        <LinearLayout
            android:layout_width="0dp"
            android:layout_height="wrap_content"
            android:layout_weight="1"
            android:layout_gravity="center_vertical"
            android:gravity="center_vertical"
            android:orientation="vertical">

            <com.google.android.setupdesign.view.RichTextView
                android:id="@+id/sud_items_title"
                style="?attr/sudItemTitleStyle"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:gravity="start"
                android:textAlignment="viewStart"
                tools:ignore="UnusedAttribute" />

            <com.google.android.setupdesign.view.RichTextView
                android:id="@+id/sud_items_summary"
                style="?attr/sudItemSummaryStyle"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:gravity="start"
                android:textAlignment="viewStart"
                android:visibility="gone"
                tools:ignore="UnusedAttribute" />

        </LinearLayout>

        <ImageView
          android:id="@+id/sud_items_expand_button"
          android:layout_width="@dimen/sud_items_expand_button_size"
          android:layout_height="@dimen/sud_items_expand_button_size"
          android:layout_gravity="center_vertical"
          android:scaleType="center"
          android:src="@drawable/sud_items_expand_button_icon" />

    </LinearLayout>

    <FrameLayout
        android:id="@+id/sud_items_expandable_content_container"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:visibility="gone" />

</LinearLayout>