92 lines
3.5 KiB
XML
92 lines
3.5 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- FrameLayout root so the Marianum watermark can sit at bottom|end behind
|
|
the actual widget content without disturbing the LinearLayout flow. -->
|
|
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:id="@+id/widget_root"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:background="@drawable/app_widget_background">
|
|
|
|
<!-- Bottom-leading so the mark looks like it's peeking out of the lower
|
|
left corner. Width/height/start+bottom margins are overridden in the
|
|
renderer so the mark scales with the widget size. -->
|
|
<ImageView
|
|
android:id="@+id/widget_watermark"
|
|
android:layout_width="160dp"
|
|
android:layout_height="160dp"
|
|
android:layout_gravity="bottom|end"
|
|
android:scaleType="fitCenter"
|
|
android:importantForAccessibility="no"
|
|
android:contentDescription="@null"
|
|
android:alpha="0.025"
|
|
android:src="@drawable/marianum_m_watermark" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="vertical"
|
|
android:padding="10dp">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:gravity="center_vertical">
|
|
<TextView
|
|
android:id="@+id/widget_day_title"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:textSize="14sp"
|
|
android:textStyle="bold"
|
|
android:textColor="@color/widget_text_primary"
|
|
android:singleLine="true"
|
|
android:ellipsize="end"
|
|
tools:text="Heute · 08.05." />
|
|
<TextView
|
|
android:id="@+id/widget_day_subtitle"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:textSize="10sp"
|
|
android:textColor="@color/widget_text_secondary"
|
|
tools:text="Stand: 14:32" />
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="0dp"
|
|
android:layout_weight="1"
|
|
android:layout_marginTop="6dp"
|
|
android:orientation="horizontal">
|
|
|
|
<FrameLayout
|
|
android:id="@+id/widget_day_time_labels"
|
|
android:layout_width="32dp"
|
|
android:layout_height="match_parent" />
|
|
|
|
<FrameLayout
|
|
android:layout_width="1dp"
|
|
android:layout_height="match_parent"
|
|
android:background="@color/widget_divider" />
|
|
|
|
<FrameLayout
|
|
android:id="@+id/widget_day_grid"
|
|
android:layout_width="0dp"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="1" />
|
|
</LinearLayout>
|
|
|
|
<TextView
|
|
android:id="@+id/widget_day_empty"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:visibility="gone"
|
|
android:textSize="13sp"
|
|
android:textColor="@color/widget_text_secondary"
|
|
android:gravity="center"
|
|
android:padding="12dp"
|
|
tools:text="Keine Stunden" />
|
|
</LinearLayout>
|
|
</FrameLayout>
|