b/5422383 Widget:Centered Date. Fixed clipping with large font.

Change-Id: I89f9f43392c4547eda31068f56645eea867eb294
diff --git a/res/layout/appwidget.xml b/res/layout/appwidget.xml
index 172b211..4c22d9e 100644
--- a/res/layout/appwidget.xml
+++ b/res/layout/appwidget.xml
@@ -27,23 +27,24 @@
     <LinearLayout
         android:id="@+id/header"
         android:layout_width="match_parent"
-        android:layout_height="48dip"
+        android:layout_height="wrap_content"
+        android:minHeight="48dip"
+        android:gravity="center_vertical|left"
         android:paddingLeft="8dip"
         android:paddingRight="2dip"
         android:orientation="vertical"
         android:background="@drawable/appwidget_header_selector">
         <TextView
             android:id="@+id/day_of_week"
+            android:layout_marginTop="4dip"
             android:textColor="@color/appwidget_week"
             android:shadowColor="#0dffffff"
             android:shadowRadius="3"
-            android:layout_marginRight="4dip"
             style="@style/WidgetDayOfWeekStyle" />
         <TextView
             android:id="@+id/date"
             android:textColor="@color/appwidget_month"
-            android:layout_marginRight="4dip"
-            style="@style/WidgetMonthStyle" />
+            style="@style/WidgetDateStyle" />
     </LinearLayout>
 
     <!-- Event list -->
diff --git a/res/values/styles.xml b/res/values/styles.xml
index ab10122..e54f2cd 100644
--- a/res/values/styles.xml
+++ b/res/values/styles.xml
@@ -239,16 +239,7 @@
         <item name="android:singleLine">true</item>
     </style>
 
-    <style name="WidgetDayStyle">
-        <item name="android:layout_width">wrap_content</item>
-        <item name="android:layout_height">wrap_content</item>
-        <item name="android:textSize">24sp</item>
-        <item name="android:gravity">bottom|left</item>
-        <item name="android:layout_marginTop">@dimen/widget_day_num_top_padding</item>
-        <item name="android:singleLine">true</item>
-    </style>
-
-    <style name="WidgetMonthStyle">
+    <style name="WidgetDateStyle">
         <item name="android:layout_width">wrap_content</item>
         <item name="android:layout_height">wrap_content</item>
         <item name="android:textSize">24sp</item>