OSDN Git Service

Updating the widget error view
authorSunny Goyal <sunnygoyal@google.com>
Tue, 19 May 2015 18:42:45 +0000 (11:42 -0700)
committerSunny Goyal <sunnygoyal@google.com>
Tue, 19 May 2015 19:10:05 +0000 (12:10 -0700)
Change-Id: I3ed6336bd9f5a795204a87feedc83663355abcf2

res/drawable-hdpi/bg_appwidget_error.9.png [deleted file]
res/drawable-mdpi/bg_appwidget_error.9.png [deleted file]
res/drawable-xhdpi/bg_appwidget_error.9.png [deleted file]
res/layout/appwidget_error.xml
res/values/colors.xml

diff --git a/res/drawable-hdpi/bg_appwidget_error.9.png b/res/drawable-hdpi/bg_appwidget_error.9.png
deleted file mode 100644 (file)
index 4da3195..0000000
Binary files a/res/drawable-hdpi/bg_appwidget_error.9.png and /dev/null differ
diff --git a/res/drawable-mdpi/bg_appwidget_error.9.png b/res/drawable-mdpi/bg_appwidget_error.9.png
deleted file mode 100644 (file)
index 493c0d4..0000000
Binary files a/res/drawable-mdpi/bg_appwidget_error.9.png and /dev/null differ
diff --git a/res/drawable-xhdpi/bg_appwidget_error.9.png b/res/drawable-xhdpi/bg_appwidget_error.9.png
deleted file mode 100644 (file)
index b792cc8..0000000
Binary files a/res/drawable-xhdpi/bg_appwidget_error.9.png and /dev/null differ
index 03d4ae4..708ece4 100644 (file)
 -->
 
 <TextView xmlns:android="http://schemas.android.com/apk/res/android"
-    android:layout_width="wrap_content"
-    android:layout_height="wrap_content"
-    android:paddingTop="10dip"
-    android:paddingBottom="10dip"
-    android:paddingLeft="20dip"
-    android:paddingRight="20dip"
+    android:layout_width="match_parent"
+    android:layout_height="match_parent"
     android:gravity="center"
-    android:background="@drawable/bg_appwidget_error"
+    android:elevation="2dp"
+    android:background="@drawable/quantum_panel_dark"
     android:textAppearance="?android:attr/textAppearanceMediumInverse"
-    android:textColor="@color/appwidget_error_color"
+    android:textColor="@color/widgets_view_item_text_color"
     android:text="@string/gadget_error_text"
     />
index 0ba55f3..1e89615 100644 (file)
@@ -27,8 +27,6 @@
 
     <color name="focused_background">#80c6c5c5</color>
 
-    <color name="appwidget_error_color">#FCCC</color>
-
     <color name="workspace_icon_text_color">#FFF</color>
 
     <color name="quantum_panel_text_color">#FF666666</color>