|
|
|
@ -4,6 +4,7 @@
|
|
|
|
|
** See the file "LICENSE" for the full license governing this code.
|
|
|
|
|
-->
|
|
|
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
|
|
|
android:id="@+id/widget"
|
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
|
android:layout_height="fill_parent"
|
|
|
|
@ -12,14 +13,26 @@
|
|
|
|
|
<RelativeLayout
|
|
|
|
|
android:id="@+id/widget_header"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="45dp"
|
|
|
|
|
android:layout_height="48dp"
|
|
|
|
|
android:orientation="horizontal">
|
|
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
|
android:id="@+id/widget_header_background"
|
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
|
android:layout_height="fill_parent"
|
|
|
|
|
android:scaleType="fitXY"/>
|
|
|
|
|
android:scaleType="fitXY"
|
|
|
|
|
tools:ignore="ContentDescription" />
|
|
|
|
|
|
|
|
|
|
<ImageButton
|
|
|
|
|
android:id="@+id/widget_change_list"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_alignParentStart="true"
|
|
|
|
|
android:layout_centerVertical="true"
|
|
|
|
|
android:padding="@dimen/widget_padding"
|
|
|
|
|
android:background="@android:color/transparent"
|
|
|
|
|
android:scaleType="fitCenter"
|
|
|
|
|
android:src="@drawable/ic_outline_menu_24px" />
|
|
|
|
|
|
|
|
|
|
<ImageButton
|
|
|
|
|
android:id="@+id/widget_button"
|
|
|
|
@ -27,12 +40,11 @@
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_alignParentEnd="true"
|
|
|
|
|
android:layout_centerVertical="true"
|
|
|
|
|
android:paddingStart="@dimen/widget_padding"
|
|
|
|
|
android:paddingEnd="@dimen/widget_padding"
|
|
|
|
|
android:padding="@dimen/widget_padding"
|
|
|
|
|
android:background="@android:color/transparent"
|
|
|
|
|
android:scaleType="fitCenter"
|
|
|
|
|
android:src="@drawable/ic_outline_add_24px"
|
|
|
|
|
android:tint="@android:color/white"/>
|
|
|
|
|
android:contentDescription="@string/action_create_new_task" />
|
|
|
|
|
|
|
|
|
|
<ImageButton
|
|
|
|
|
android:id="@+id/widget_reconfigure"
|
|
|
|
@ -40,27 +52,25 @@
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_centerVertical="true"
|
|
|
|
|
android:layout_toStartOf="@id/widget_button"
|
|
|
|
|
android:paddingStart="@dimen/widget_padding"
|
|
|
|
|
android:paddingEnd="0dp"
|
|
|
|
|
android:padding="@dimen/widget_padding"
|
|
|
|
|
android:background="@android:color/transparent"
|
|
|
|
|
android:scaleType="fitCenter"
|
|
|
|
|
android:src="@drawable/ic_outline_settings_24px"
|
|
|
|
|
android:tint="@android:color/white"/>
|
|
|
|
|
android:contentDescription="@string/widget_settings" />
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/widget_title"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
android:layout_alignParentStart="true"
|
|
|
|
|
android:layout_centerVertical="true"
|
|
|
|
|
android:layout_toEndOf="@id/widget_change_list"
|
|
|
|
|
android:layout_toStartOf="@id/widget_reconfigure"
|
|
|
|
|
android:paddingStart="@dimen/widget_padding"
|
|
|
|
|
android:paddingEnd="0dp"
|
|
|
|
|
android:ellipsize="end"
|
|
|
|
|
tools:text="Today"
|
|
|
|
|
android:gravity="start|center_vertical"
|
|
|
|
|
android:maxLines="2"
|
|
|
|
|
android:textAlignment="viewStart"
|
|
|
|
|
android:textColor="@android:color/white"
|
|
|
|
|
android:textColor="@android:color/black"
|
|
|
|
|
android:textSize="18sp"/>
|
|
|
|
|
|
|
|
|
|
</RelativeLayout>
|
|
|
|
@ -73,7 +83,8 @@
|
|
|
|
|
android:id="@+id/widget_background"
|
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
|
android:layout_height="fill_parent"
|
|
|
|
|
android:scaleType="fitXY"/>
|
|
|
|
|
android:scaleType="fitXY"
|
|
|
|
|
tools:ignore="ContentDescription" />
|
|
|
|
|
|
|
|
|
|
<ListView
|
|
|
|
|
android:id="@+id/list_view"
|
|
|
|
|