<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/widget_root"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="@drawable/widget_background"
    android:clickable="true"
    android:focusable="true"
    android:orientation="vertical"
    android:padding="16dp">

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:gravity="center_vertical"
        android:orientation="horizontal">

        <View
            android:layout_width="5dp"
            android:layout_height="22dp"
            android:layout_marginEnd="9dp"
            android:background="@drawable/widget_accent" />

        <TextView
            android:id="@+id/widget_title"
            android:layout_width="0dp"
            android:layout_height="wrap_content"
            android:layout_weight="1"
            android:ellipsize="end"
            android:maxLines="1"
            android:text="今日课表"
            android:textColor="#102652"
            android:textSize="16sp"
            android:textStyle="bold" />

        <TextView
            android:id="@+id/widget_updated"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="等待同步"
            android:textColor="#74839E"
            android:textSize="10sp" />
    </LinearLayout>

    <TextView
        android:id="@+id/widget_empty"
        android:layout_width="match_parent"
        android:layout_height="0dp"
        android:layout_weight="1"
        android:gravity="center"
        android:text="登录 App 后同步教务数据"
        android:textColor="#61718D"
        android:textSize="13sp" />

    <LinearLayout
        android:id="@+id/widget_row_one"
        style="@style/WidgetAcademicRow">
        <TextView
            android:id="@+id/widget_time_one"
            style="@style/WidgetAcademicTime" />
        <LinearLayout style="@style/WidgetAcademicCopy">
            <TextView
                android:id="@+id/widget_item_title_one"
                style="@style/WidgetAcademicTitle" />
            <TextView
                android:id="@+id/widget_item_subtitle_one"
                style="@style/WidgetAcademicSubtitle" />
        </LinearLayout>
    </LinearLayout>

    <LinearLayout
        android:id="@+id/widget_row_two"
        style="@style/WidgetAcademicRow">
        <TextView
            android:id="@+id/widget_time_two"
            style="@style/WidgetAcademicTime" />
        <LinearLayout style="@style/WidgetAcademicCopy">
            <TextView
                android:id="@+id/widget_item_title_two"
                style="@style/WidgetAcademicTitle" />
            <TextView
                android:id="@+id/widget_item_subtitle_two"
                style="@style/WidgetAcademicSubtitle" />
        </LinearLayout>
    </LinearLayout>

    <LinearLayout
        android:id="@+id/widget_row_three"
        style="@style/WidgetAcademicRow">
        <TextView
            android:id="@+id/widget_time_three"
            style="@style/WidgetAcademicTime" />
        <LinearLayout style="@style/WidgetAcademicCopy">
            <TextView
                android:id="@+id/widget_item_title_three"
                style="@style/WidgetAcademicTitle" />
            <TextView
                android:id="@+id/widget_item_subtitle_three"
                style="@style/WidgetAcademicSubtitle" />
        </LinearLayout>
    </LinearLayout>
</LinearLayout>
