diff options
Diffstat (limited to 'res/layout/widget_cell.xml')
-rw-r--r-- | res/layout/widget_cell.xml | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/res/layout/widget_cell.xml b/res/layout/widget_cell.xml index ab23b842e..a85f0aa16 100644 --- a/res/layout/widget_cell.xml +++ b/res/layout/widget_cell.xml @@ -16,13 +16,13 @@ <com.android.launcher3.widget.WidgetCell xmlns:android="http://schemas.android.com/apk/res/android" xmlns:launcher="http://schemas.android.com/apk/res-auto" - android:layout_width="@dimen/widget_preview_container_width" - android:layout_height="@dimen/widget_cell_height" + android:layout_width="wrap_content" + android:layout_height="wrap_content" android:layout_weight="1" - android:layout_marginRight="@dimen/widget_row_divider" android:orientation="vertical" + android:focusable="true" android:background="@color/widgets_cell_color" - android:focusable="true"> + android:gravity="center_horizontal"> <LinearLayout android:layout_width="wrap_content" @@ -43,7 +43,6 @@ android:singleLine="true" android:ellipsize="end" android:fadingEdge="horizontal" - android:textColor="@color/widgets_view_item_text_color" android:textSize="16sp" android:textAlignment="viewStart" @@ -73,9 +72,8 @@ <com.android.launcher3.widget.WidgetImageView android:id="@+id/widget_preview" style="@style/WidgetImageView" - android:layout_width="match_parent" + android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_weight="1" android:scaleType="matrix" /> - -</com.android.launcher3.widget.WidgetCell> +</com.android.launcher3.widget.WidgetCell>
\ No newline at end of file |