summaryrefslogtreecommitdiffstats
path: root/res/layout/appwidget.xml
diff options
context:
space:
mode:
authorPeter Ng <petergng@google.com>2011-09-06 14:49:56 -0700
committerRoboErik <epastern@google.com>2011-09-06 17:39:06 -0700
commit95d6fe0b672284a19699edc4727c366e3b0ccec7 (patch)
tree569fa08556c36132c236dc6efa77dfd7e7382a21 /res/layout/appwidget.xml
parent9cd139c477f71b0f562e869fb5333f0ccd44f0cf (diff)
downloadandroid_packages_apps_Calendar-95d6fe0b672284a19699edc4727c366e3b0ccec7.tar.gz
android_packages_apps_Calendar-95d6fe0b672284a19699edc4727c366e3b0ccec7.tar.bz2
android_packages_apps_Calendar-95d6fe0b672284a19699edc4727c366e3b0ccec7.zip
Homescreen widget asset updates and layout fixes
-converted many assets into 9's -removed unused xml and pngs -header style changed -event subject maxLine set to 2 also tweaked padding on event text in day view Change-Id: I080be84e9706b91b3bcbd3f7867b11f7476e20fe
Diffstat (limited to 'res/layout/appwidget.xml')
-rw-r--r--res/layout/appwidget.xml67
1 files changed, 17 insertions, 50 deletions
diff --git a/res/layout/appwidget.xml b/res/layout/appwidget.xml
index c70a5b10..04913ef3 100644
--- a/res/layout/appwidget.xml
+++ b/res/layout/appwidget.xml
@@ -19,76 +19,43 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
- android:background="@drawable/gradient_bg_cal_widget_holo"
android:focusable="true"
- android:clickable="true">
+ android:clickable="true"
+ android:background="@drawable/cal_widget_bg">
<!-- Header -->
<LinearLayout
android:id="@+id/header"
android:layout_width="match_parent"
- android:layout_height="42dip"
- android:layout_marginLeft="2dip"
- android:layout_marginRight="2dip"
+ android:layout_height="48dip"
android:paddingLeft="8dip"
android:paddingRight="2dip"
- android:orientation="horizontal"
+ android:orientation="vertical"
android:background="@drawable/appwidget_header_selector">
- <LinearLayout
- android:id="@+id/holder"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_gravity="center_vertical"
+ <TextView
+ android:id="@+id/day_of_week"
+ android:textColor="@color/appwidget_week"
+ android:shadowColor="#0dffffff"
+ android:shadowRadius="3"
android:layout_marginRight="4dip"
- android:orientation="vertical">
- <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>
-
+ style="@style/WidgetDayOfWeekStyle" />
<TextView
- android:layout_width="0dip"
- android:layout_height="wrap_content"
- android:layout_weight="1"
- android:gravity="center_vertical|left"
- android:id="@+id/day_of_month"
- android:textColor="@color/appwidget_date"
- style="@style/WidgetDayStyle" />
+ android:id="@+id/date"
+ android:textColor="@color/appwidget_month"
+ android:layout_marginRight="4dip"
+ style="@style/WidgetMonthStyle" />
</LinearLayout>
- <!-- Separator -->
- <ImageView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:background="@drawable/list_div_top_btm_cal_widget_holo"
- android:focusable="false"
- android:clickable="false" />
-
<!-- Event list -->
<ListView
android:id="@+id/events_list"
android:layout_width="match_parent"
android:layout_height="0dip"
android:layout_weight="1"
- android:layout_marginRight="3dip"
- android:layout_marginLeft="3dip"
+ android:layout_marginRight="6dip"
+ android:layout_marginLeft="6dip"
android:fadingEdge="none"
android:divider="@null"
- android:dividerHeight="0dip"
+ android:dividerHeight="3dip"
android:cacheColorHint="@null" />
-
- <!-- Separator -->
- <ImageView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:background="@drawable/list_div_top_btm_cal_widget_holo"
- android:focusable="false"
- android:clickable="false" />
</LinearLayout>