<?xml version="1.0" encoding="utf-8"?>
<!-- Widget Preview Layout for Android 12+ widget picker (previewLayout) -->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical"
    android:padding="16dp"
    android:background="@drawable/widget_preview_background"
    android:clipToOutline="true">

    <!-- TitleBar Simulation -->
    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:orientation="horizontal"
        android:gravity="center_vertical"
        android:paddingBottom="8dp">

        <ImageView
            android:layout_width="20dp"
            android:layout_height="20dp"
            android:src="@drawable/ic_note_24"
            android:importantForAccessibility="no" />

        <TextView
            android:layout_width="0dp"
            android:layout_height="wrap_content"
            android:layout_weight="1"
            android:layout_marginStart="8dp"
            android:text="@string/widget_preview_title"
            android:textSize="16sp"
            android:textStyle="bold"
            android:textColor="?android:attr/textColorPrimary"
            android:maxLines="1"
            android:ellipsize="end" />

        <ImageView
            android:layout_width="20dp"
            android:layout_height="20dp"
            android:src="@drawable/ic_more_vert"
            android:importantForAccessibility="no"
            android:alpha="0.5" />

    </LinearLayout>

    <!-- Content Preview -->
    <TextView
        android:layout_width="match_parent"
        android:layout_height="0dp"
        android:layout_weight="1"
        android:text="@string/widget_preview_content"
        android:textSize="14sp"
        android:textColor="?android:attr/textColorSecondary"
        android:maxLines="5"
        android:ellipsize="end"
        android:lineSpacingMultiplier="1.3" />

</LinearLayout>
