OSDN Git Service

Increase dimens for power control widget for sw600dp
authorAndrew Flynn <flynn@google.com>
Tue, 29 May 2012 19:36:50 +0000 (12:36 -0700)
committerAndrew Flynn <flynn@google.com>
Tue, 5 Jun 2012 21:58:24 +0000 (14:58 -0700)
Bug: 6527125
Change-Id: If4c3dad24e8fc70ca76bb551cfd9e32be96a6337

res/values-sw600dp/dimens.xml
res/values/dimens.xml
res/xml/appwidget_info.xml

index 80d5368..cf7ac6b 100755 (executable)
@@ -30,4 +30,6 @@
     <dimen name="setup_margin_bottom">0dip</dimen>
     <dimen name="setup_button_size">48dip</dimen>
     <dimen name="setup_item_margin">32dip</dimen>
+    <dimen name="appwidget_min_width">325dip</dimen>
+    <dimen name="appwidget_min_height">50dip</dimen>
 </resources>
index 815f9c1..3911fd5 100755 (executable)
@@ -49,4 +49,6 @@
 
     <!--  Size of icons in the top-level of settings  -->
     <dimen name="header_icon_width">32dp</dimen>
+    <dimen name="appwidget_min_width">260dip</dimen>
+    <dimen name="appwidget_min_height">40dip</dimen>
 </resources>
index dc90d4e..2d8c81e 100644 (file)
@@ -15,8 +15,8 @@
 -->
 
 <appwidget-provider xmlns:android="http://schemas.android.com/apk/res/android"
-    android:minWidth="260dip"
-    android:minHeight="40dip"
+    android:minWidth="@dimen/appwidget_min_width"
+    android:minHeight="@dimen/appwidget_min_height"
     android:previewImage="@drawable/preview"
     android:initialLayout="@layout/widget"
     >