<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="@drawable/widget_outer_background"
    android:orientation="vertical">

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:paddingStart="@dimen/widget_inner_padding_horizontal"
        android:paddingTop="@dimen/widget_inner_padding_vertical"
        android:paddingEnd="@dimen/widget_inner_padding_horizontal">

        <RelativeLayout
            android:id="@+id/widget_stack_header_rl"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:paddingStart="@dimen/spacer_1x"
            android:paddingEnd="@dimen/spacer_1x"
            tools:ignore="UselessParent">

            <ImageView
                android:id="@+id/widget_stack_header_icon"
                android:layout_width="@dimen/widget_font_size_header"
                android:layout_height="@dimen/widget_font_size_header"
                android:layout_alignParentStart="true"
                android:layout_centerVertical="true"
                android:contentDescription="@string/widget_stack_header_icon"
                android:src="@drawable/circle_8dp" />

            <TextView
                android:id="@+id/widget_stack_title_tv"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_alignParentEnd="true"
                android:layout_toEndOf="@id/widget_stack_header_icon"
                android:gravity="center_vertical"
                android:paddingStart="@dimen/spacer_1x"
                android:paddingEnd="@null"
                android:textAppearance="?attr/textAppearanceBody1"
                android:textColor="@color/widget_foreground"
                android:textSize="@dimen/widget_font_size_header"
                android:textStyle="bold"
                tools:text="@string/app_name" />

        </RelativeLayout>
    </LinearLayout>

    <ListView
        android:id="@+id/stack_widget_lv"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:divider="@android:color/transparent"
        android:dividerHeight="@dimen/spacer_1x"
        android:paddingStart="@dimen/widget_inner_padding_horizontal"
        android:paddingTop="@dimen/spacer_1x"
        android:paddingEnd="@dimen/widget_inner_padding_horizontal"
        android:paddingBottom="@dimen/widget_inner_padding_vertical"
        tools:listitem="@layout/widget_stack_entry" />

    <ImageView
        android:id="@+id/widget_stack_placeholder_iv"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:contentDescription="@string/widget_placeholder_icon"
        android:gravity="center"
        android:text="@string/app_name_short"
        android:textColor="?attr/colorOnSurfaceVariant"
        app:srcCompat="@drawable/ic_local_movies_24dp"
        tools:visibility="gone" />

</LinearLayout>
