<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:orientation="horizontal"
    android:gravity="center_vertical"
    android:padding="24dp"
    android:background="@android:color/transparent">

    <!-- app icon in rounded box -->
    <LinearLayout
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:orientation="vertical"
        android:gravity="center"
        android:padding="16dp"
        android:background="@drawable/task_background_selected">

        <ImageView
            android:id="@+id/menuAppIcon"
            android:layout_width="72dp"
            android:layout_height="72dp"
            android:scaleType="fitCenter" />

        <TextView
            android:id="@+id/menuTitle"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginTop="8dp"
            android:textColor="#e0b0ff"
            android:textSize="12sp"
            android:maxLines="1"
            android:ellipsize="end"
            android:gravity="center" />

    </LinearLayout>

    <!-- pill buttons - 35-40% screen width -->
    <LinearLayout
        android:layout_width="0dp"
        android:layout_weight="0.4"
        android:layout_height="wrap_content"
        android:orientation="vertical"
        android:layout_marginLeft="20dp"
        android:gravity="center">

        <TextView
            android:id="@+id/pinButton"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:text="pin"
            android:textColor="#e0b0ff"
            android:textSize="16sp"
            android:padding="16dp"
            android:background="@drawable/pill_button"
            android:gravity="center"
            android:focusable="true"
            android:clickable="true" />

        <View
            android:layout_width="match_parent"
            android:layout_height="12dp" />

        <TextView
            android:id="@+id/closeButton"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:text="close"
            android:textColor="#ff6b6b"
            android:textSize="16sp"
            android:padding="16dp"
            android:background="@drawable/pill_button"
            android:gravity="center"
            android:focusable="true"
            android:clickable="true" />

    </LinearLayout>

</LinearLayout>
