widgets: add widget layout preview

Add a layout preview to the Android 12 widget metadata. I'm holding off
on implementing a drawable until the widgets are completely finalized.
This commit is contained in:
OxygenCobalt
2021-08-03 10:33:07 -06:00
parent 8551e90884
commit 49db7e0741
11 changed files with 54 additions and 29 deletions
@@ -3,6 +3,7 @@
android:id="@android:id/background"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="?attr/colorSurface"
android:theme="@style/Theme.Widget">
<android.widget.ImageView
+1 -3
View File
@@ -52,9 +52,7 @@
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/spacing_medium"
android:gravity="center"
android:orientation="horizontal">
android:layout_marginTop="@dimen/spacing_small">
<!--
Can't use a normal unbounded ripple here since it causes a weird bug