Remove icon in widget per UX
This reverts commit c81d17c2bfb25a7de75e3a4c886fb5b932dc47fb.
Bug: 7120752
diff --git a/res/layout/appwidget.xml b/res/layout/appwidget.xml
index e27bcc9..4fb2c15 100644
--- a/res/layout/appwidget.xml
+++ b/res/layout/appwidget.xml
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
-<!--
- Copyright (C) 2009 The Android Open Source Project
+<!-- Copyright (C) 2009 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@ -14,50 +13,37 @@
See the License for the specific language governing permissions and
limitations under the License.
-->
-<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+
+<LinearLayout
+ xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
- android:clickable="true"
+ android:orientation="vertical"
android:focusable="true"
- android:orientation="vertical" >
+ android:clickable="true">
<!-- Header -->
-
<LinearLayout
android:id="@+id/header"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:background="@drawable/appwidget_header_selector"
- android:gravity="center_vertical|left"
android:minHeight="48dip"
- android:paddingLeft="5dip"
- android:paddingRight="2dip" >
-
- <ImageView
- android:layout_width="32dip"
- android:layout_height="32dip"
- android:scaleType="centerInside"
- android:src="@mipmap/ic_launcher_calendar" />
-
- <LinearLayout
- android:layout_width="0dip"
- android:layout_height="wrap_content"
- android:orientation="vertical"
- android:layout_weight="1"
- android:paddingLeft="8dip" >
-
- <TextView
- android:id="@+id/day_of_week"
- style="@style/WidgetDayOfWeekStyle"
- android:shadowColor="#0dffffff"
- android:shadowRadius="3"
- android:textColor="@color/appwidget_week" />
-
- <TextView
- android:id="@+id/date"
- style="@style/WidgetDateStyle"
- android:textColor="@color/appwidget_month" />
- </LinearLayout>
+ 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"
+ style="@style/WidgetDayOfWeekStyle" />
+ <TextView
+ android:id="@+id/date"
+ android:textColor="@color/appwidget_month"
+ style="@style/WidgetDateStyle" />
</LinearLayout>
<!-- Event list -->
@@ -65,14 +51,12 @@
android:id="@+id/events_list"
android:layout_width="match_parent"
android:layout_height="0dip"
- android:layout_marginLeft="4dip"
- android:layout_marginRight="4dip"
android:layout_weight="1"
- android:background="@drawable/cal_widget_bg"
- android:cacheColorHint="@null"
+ android:layout_marginRight="4dip"
+ android:layout_marginLeft="4dip"
android:divider="@null"
+ android:listSelector="@android:color/transparent"
android:dividerHeight="3dip"
- android:listSelector="@android:color/transparent" >
- </ListView>
-
-</LinearLayout>
\ No newline at end of file
+ android:cacheColorHint="@null"
+ android:background="@drawable/cal_widget_bg"/>
+</LinearLayout>