properly update widget date and time

This commit is contained in:
tibbi
2018-03-11 23:12:36 +01:00
parent 9bb9caf7c5
commit 3b5bf64066
4 changed files with 48 additions and 7 deletions

View File

@ -19,7 +19,7 @@
android:layout_height="wrap_content"
android:gravity="center_horizontal"
android:includeFontPadding="false"
android:textSize="@dimen/clock_text_size"
android:textSize="@dimen/widget_time_text_size"
tools:text="00:00"/>
<TextView
@ -30,7 +30,7 @@
android:gravity="center_horizontal"
android:includeFontPadding="false"
android:paddingBottom="@dimen/small_margin"
android:textSize="@dimen/big_text_size"
android:textSize="@dimen/normal_text_size"
tools:text="Mon, 1 January"/>
</RelativeLayout>

View File

@ -4,15 +4,15 @@
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/widget_date_time_holder"
android:layout_width="match_parent"
android:layout_height="match_parent">
android:layout_height="wrap_content">
<TextView
android:id="@+id/widget_time"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/big_margin"
android:gravity="center_horizontal"
android:textSize="@dimen/clock_text_size"
android:includeFontPadding="false"
android:textSize="@dimen/widget_time_text_size"
tools:text="00:00"/>
<TextView
@ -21,7 +21,9 @@
android:layout_height="wrap_content"
android:layout_below="@+id/widget_time"
android:gravity="center_horizontal"
android:textSize="@dimen/big_text_size"
android:includeFontPadding="false"
android:paddingBottom="@dimen/normal_margin"
android:textSize="@dimen/normal_text_size"
tools:text="Mon, 1 January"/>
</RelativeLayout>