OSDN Git Service

Eleven: vertically recentre widgets
authorSultan Qasim Khan <sultanqasim@gmail.com>
Sun, 17 Apr 2016 01:09:54 +0000 (21:09 -0400)
committerSultan Qasim Khan <sultanqasim@gmail.com>
Sun, 17 Apr 2016 02:49:30 +0000 (22:49 -0400)
The recent theme change made parts of the widgets offset towards
the top, which looks odd and unbalanced. This brings back the more
normal looking centring.

Change-Id: Id83f3523e8b766aaf8abde0a9410c768a7f325c5

res/layout/app_widget_large.xml
res/layout/app_widget_large_alternate.xml
res/layout/app_widget_small.xml

index e4be97e..c4ea525 100644 (file)
@@ -20,7 +20,7 @@
     android:layout_width="match_parent"
     android:layout_height="@dimen/app_widget_large_min_height"
     android:columnCount="2"
-    android:rowCount="4"
+    android:rowCount="2"
     android:background="@color/black"
     tools:ignore="ContentDescription" >
 
@@ -28,7 +28,7 @@
         android:id="@+id/app_widget_large_image"
         android:layout_width="@dimen/notification_expanded_height"
         android:layout_height="@dimen/notification_expanded_height"
-        android:layout_rowSpan="4"
+        android:layout_rowSpan="2"
         android:layout_marginBottom="@dimen/app_widget_bottom_margin"
         android:scaleType="fitXY" />
 
index d47ed79..da1aa59 100644 (file)
@@ -21,7 +21,7 @@
     android:layout_height="@dimen/app_widget_large_min_height"
     android:background="@color/black"
     android:columnCount="2"
-    android:rowCount="4"
+    android:rowCount="2"
     tools:ignore="ContentDescription" >
 
     <ImageView
index 1ceb7ea..f6810a7 100644 (file)
@@ -20,7 +20,7 @@
     android:layout_width="match_parent"
     android:layout_height="match_parent"
     android:columnCount="2"
-    android:rowCount="4"
+    android:rowCount="2"
     android:background="@color/black"
     android:gravity="top"
     android:padding="@dimen/app_widget_padding"