<?xml version="1.0" encoding="utf-8"?>
<!--
  ~ Copyright (C) 2025 Google Inc.
  ~
  ~ 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.
  -->
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/root_view"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="#FAFAFA">

    <ScrollView
        android:id="@+id/content_frame"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:clipToPadding="false">

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:gravity="center_horizontal"
            android:orientation="vertical"
            android:padding="16dp">

            <TextView
                android:id="@+id/status_bar_inset"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginBottom="8dp"
                android:background="#EEEEEE"
                android:padding="8dp"
                android:text="Status Bar Inset:"
                android:textSize="16sp" />

            <TextView
                android:id="@+id/nav_bar_inset"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginBottom="8dp"
                android:background="#EEEEEE"
                android:padding="8dp"
                android:text="Navigation Bar Inset:"
                android:textSize="16sp" />

            <TextView
                android:id="@+id/ime_inset"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginBottom="8dp"
                android:background="#EEEEEE"
                android:padding="8dp"
                android:text="IME Inset:"
                android:textSize="16sp" />

            <TextView
                android:id="@+id/system_gesture_inset"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginBottom="8dp"
                android:background="#EEEEEE"
                android:padding="8dp"
                android:text="System Gesture Inset:"
                android:textSize="16sp" />

            <TextView
                android:id="@+id/tappable_element_inset"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginBottom="8dp"
                android:background="#EEEEEE"
                android:padding="8dp"
                android:text="Tappable Element Inset:"
                android:textSize="16sp" />

            <TextView
                android:id="@+id/system_bar_inset"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginBottom="8dp"
                android:background="#EEEEEE"
                android:padding="8dp"
                android:text="System Bar Inset:"
                android:textSize="16sp" />

            <!--            <TextView-->
            <!--                android:id="@+id/system_overlay_inset"-->
            <!--                android:layout_width="match_parent"-->
            <!--                android:layout_height="wrap_content"-->
            <!--                android:text="System Bar Inset:"-->
            <!--                android:textSize="16sp"-->
            <!--                android:padding="8dp"-->
            <!--                android:background="#EEEEEE"-->
            <!--                android:layout_marginBottom="8dp" />-->


        </LinearLayout>
    </ScrollView>
    <com.android.car.insets.FrostedGlassView
        android:id="@+id/frostedGlassView"
        android:layout_width="match_parent"
        android:layout_height="match_parent" />
</FrameLayout>
