diff options
author | Michael Chan <mchan@android.com> | 2011-01-13 16:50:30 -0800 |
---|---|---|
committer | Michael Chan <mchan@android.com> | 2011-01-13 17:07:03 -0800 |
commit | 074ca95bd0f11373e6062f45985b9847fa71b989 (patch) | |
tree | 5ea1c16a9bc72b917158fe17f0c75cf371ac796c /res/layout/appwidget.xml | |
parent | eeff611a4bec0e3d3fd52eccabe14af82d24c83e (diff) | |
download | android_packages_apps_Calendar-074ca95bd0f11373e6062f45985b9847fa71b989.tar.gz android_packages_apps_Calendar-074ca95bd0f11373e6062f45985b9847fa71b989.tar.bz2 android_packages_apps_Calendar-074ca95bd0f11373e6062f45985b9847fa71b989.zip |
b/3347307 Calendar Widget pixel perfect
- Align to icons
- Update the date/week/month colors/shadows to match the header in Gmail
Change-Id: I233ac0a4108b5daa2f04f277927e570013364021
Diffstat (limited to 'res/layout/appwidget.xml')
-rw-r--r-- | res/layout/appwidget.xml | 56 |
1 files changed, 13 insertions, 43 deletions
diff --git a/res/layout/appwidget.xml b/res/layout/appwidget.xml index 71a548ba..47944595 100644 --- a/res/layout/appwidget.xml +++ b/res/layout/appwidget.xml @@ -18,8 +18,8 @@ xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" - android:layout_marginTop="4dip" - android:layout_marginBottom="20dip" + android:layout_marginTop="7dip" + android:layout_marginBottom="18dip" android:layout_marginLeft="12dip" android:layout_marginRight="12dip" android:orientation="vertical" @@ -45,38 +45,16 @@ android:layout_gravity="center_vertical" android:layout_marginRight="5dip" android:orientation="vertical"> - <FrameLayout - android:layout_width="wrap_content" - android:layout_height="wrap_content"> - <TextView - android:id="@+id/day_of_week" - android:textColor="@color/appwidget_week" - android:shadowColor="#66ffffff" - android:shadowRadius="2" - style="@style/WidgetDayOfWeekStyle" /> - <TextView - android:id="@+id/day_of_week_shadow" - android:textColor="@color/appwidget_week" - android:shadowColor="#4d000000" - android:shadowRadius="1" - style="@style/WidgetDayOfWeekStyle" /> - </FrameLayout> - <FrameLayout - android:layout_width="wrap_content" - android:layout_height="wrap_content"> - <TextView - android:id="@+id/month_shadow" - android:textColor="@color/appwidget_month" - android:shadowColor="#66ffffff" - android:shadowRadius="2" - style="@style/WidgetMonthStyle" /> - <TextView - android:id="@+id/month" - android:textColor="@color/appwidget_month" - android:shadowColor="#4d000000" - android:shadowRadius="1" - style="@style/WidgetMonthStyle" /> - </FrameLayout> + <TextView + android:id="@+id/day_of_week" + android:textColor="@color/appwidget_week" + android:shadowColor="#0dffffff" + android:shadowRadius="3" + style="@style/WidgetDayOfWeekStyle" /> + <TextView + android:id="@+id/month" + android:textColor="@color/appwidget_month" + style="@style/WidgetMonthStyle" /> </LinearLayout> <FrameLayout @@ -86,16 +64,8 @@ android:layout_gravity="center_vertical|left" android:layout_toRightOf="@id/holder"> <TextView - android:id="@+id/day_of_month_shadow" - android:textColor="#00000000" - android:shadowColor="#0DFFFFFF" - android:shadowRadius="3" - style="@style/WidgetDayStyle" /> - <TextView android:id="@+id/day_of_month" - android:textColor="#4DFFFFFF" - android:shadowColor="#80000000" - android:shadowRadius="1" + android:textColor="@color/appwidget_date" style="@style/WidgetDayStyle" /> </FrameLayout> |