widgets: fix responsiveness issues
Fix some problems with the Pre-12 widget responsiveness backport, most notably the wrong layout being chosen on more dense launcher grids. Also change the default widget size from 2x2 to 3x2 so that it's more readable.
This commit is contained in:
@@ -44,11 +44,15 @@
|
||||
<style name="Widget.Component.AppWidget.ImageView" parent="">
|
||||
<item name="android:layout_width">match_parent</item>
|
||||
<item name="android:layout_height">0dp</item>
|
||||
<item name="android:layout_weight">1</item>
|
||||
<item name="android:background">?attr/colorSurface</item>
|
||||
<item name="android:scaleType">centerCrop</item>
|
||||
</style>
|
||||
|
||||
<style name="Widget.Component.AppWidget.Button.Base" parent="Widget.AppCompat.Button.Borderless">
|
||||
<item name="android:layout_height">@dimen/height_widget_button</item>
|
||||
<item name="android:layout_width">0dp</item>
|
||||
<item name="android:layout_weight">1</item>
|
||||
<item name="android:scaleType">fitCenter</item>
|
||||
<item name="android:padding">@dimen/spacing_micro</item>
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user