<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="#B00a0a0f"
    android:clipChildren="false"
    android:clipToPadding="false">

    <!-- main content -->
    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:orientation="vertical"
        android:gravity="center_horizontal"
        android:clipChildren="false"
        android:clipToPadding="false">

        <!-- top spacer -->
        <View
            android:layout_width="match_parent"
            android:layout_height="0dp"
            android:layout_weight="1" />

        <!-- banner image -->
        <ImageView
            android:id="@+id/bannerImage"
            android:layout_width="180dp"
            android:layout_height="wrap_content"
            android:adjustViewBounds="true"
            android:src="@drawable/resumd_banner_inapp" />

        <!-- small gap -->
        <View
            android:layout_width="match_parent"
            android:layout_height="8dp" />

        <!-- title -->
        <TextView
            android:id="@+id/titleText"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="recent apps"
            android:textColor="#7fffd4"
            android:textSize="24sp"
            android:letterSpacing="0.05" />

        <!-- small gap -->
        <View
            android:layout_width="match_parent"
            android:layout_height="16dp" />

        <!-- app wheel -->
        <androidx.recyclerview.widget.RecyclerView
            android:id="@+id/recyclerView"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_gravity="center_horizontal"
            android:paddingLeft="16dp"
            android:paddingRight="16dp"
            android:clipChildren="false"
            android:clipToPadding="false" />

        <!-- small gap to pill -->
        <View
            android:layout_width="match_parent"
            android:layout_height="12dp" />

        <!-- close all pill -->
        <TextView
            android:id="@+id/closeAllButton"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:paddingLeft="32dp"
            android:paddingRight="32dp"
            android:paddingTop="12dp"
            android:paddingBottom="12dp"
            android:text="close all"
            android:textColor="#e0b0ff"
            android:textSize="16sp"
            android:background="@drawable/pill_button"
            android:focusable="true"
            android:clickable="true" />

        <!-- bottom spacer -->
        <View
            android:layout_width="match_parent"
            android:layout_height="0dp"
            android:layout_weight="1" />

    </LinearLayout>

    <!-- settings cog in upper right -->
    <ImageView
        android:id="@+id/settingsButton"
        android:layout_width="40dp"
        android:layout_height="40dp"
        android:layout_gravity="top|end"
        android:layout_margin="16dp"
        android:padding="8dp"
        android:src="@drawable/ic_settings"
        android:contentDescription="settings"
        android:focusable="true"
        android:clickable="true"
        android:background="?android:attr/selectableItemBackgroundBorderless" />

</FrameLayout>
