Reduce min size slightly

This commit is contained in:
tzugen 2022-10-18 17:18:21 +02:00
parent 5222e952aa
commit f47a9c0861
No known key found for this signature in database
GPG Key ID: 61E9C34BC10EC930
2 changed files with 16 additions and 16 deletions

View File

@ -5,11 +5,10 @@
a:layout_width="fill_parent" a:layout_width="fill_parent"
a:layout_height="wrap_content" a:layout_height="wrap_content"
a:minWidth="220dp" a:minWidth="220dp"
a:minHeight="80dp" a:minHeight="45dp"
a:orientation="horizontal" a:orientation="horizontal"
a:theme="@style/Theme.AppWidget.AppWidgetContainerCropped" a:theme="@style/Theme.AppWidget.AppWidgetContainerCropped"
tools:ignore="UseAppTint,NestedWeights" tools:ignore="UseAppTint,NestedWeights">
>
<ImageView <ImageView
a:id="@+id/appwidget_coverart" a:id="@+id/appwidget_coverart"
@ -30,9 +29,12 @@
a:layout_width="match_parent" a:layout_width="match_parent"
a:layout_height="match_parent" a:layout_height="match_parent"
a:layout_marginHorizontal="5dp" a:layout_marginHorizontal="5dp"
a:baselineAligned="false"
a:orientation="horizontal" a:orientation="horizontal"
a:padding="12dp" a:paddingStart="12dp"
a:baselineAligned="false"> a:paddingTop="6dp"
a:paddingEnd="12dp"
a:paddingBottom="6dp">
<LinearLayout <LinearLayout
a:id="@+id/appwidget_top" a:id="@+id/appwidget_top"
@ -52,8 +54,7 @@
a:ellipsize="marquee" a:ellipsize="marquee"
a:gravity="bottom" a:gravity="bottom"
a:textAppearance="@style/TextAppearance.Material3.TitleMedium" a:textAppearance="@style/TextAppearance.Material3.TitleMedium"
tools:text="Title" tools:text="Title" />
/>
<TextView <TextView
@ -80,31 +81,30 @@
a:layout_width="0dp" a:layout_width="0dp"
a:layout_height="match_parent" a:layout_height="match_parent"
a:layout_weight="0.6" a:layout_weight="0.6"
a:background="@null"
a:importantForAccessibility="no" a:importantForAccessibility="no"
a:scaleType="fitCenter" a:scaleType="fitCenter"
a:src="@drawable/media_backward" a:src="@drawable/media_backward" />
a:background="@null"
/>
<ImageButton <ImageButton
a:id="@+id/control_play" a:id="@+id/control_play"
a:layout_width="0dp" a:layout_width="0dp"
a:layout_height="match_parent" a:layout_height="match_parent"
a:layout_weight="1" a:layout_weight="1"
a:background="@null"
a:importantForAccessibility="no" a:importantForAccessibility="no"
a:scaleType="fitCenter" a:scaleType="fitCenter"
a:src="@drawable/media_start" a:src="@drawable/media_start" />
a:background="@null"/>
<ImageButton <ImageButton
a:id="@+id/control_next" a:id="@+id/control_next"
a:layout_width="0dp" a:layout_width="0dp"
a:layout_height="match_parent" a:layout_height="match_parent"
a:layout_weight="0.6" a:layout_weight="0.6"
a:background="@null"
a:importantForAccessibility="no" a:importantForAccessibility="no"
a:scaleType="fitCenter" a:scaleType="fitCenter"
a:src="@drawable/media_forward" a:src="@drawable/media_forward" />
a:background="@null"/>
</LinearLayout> </LinearLayout>
</LinearLayout> </LinearLayout>

View File

@ -2,11 +2,11 @@
<appwidget-provider xmlns:a="http://schemas.android.com/apk/res/android" <appwidget-provider xmlns:a="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
a:minWidth="220dp" a:minWidth="220dp"
a:minHeight="50dp" a:minHeight="45dp"
a:targetCellWidth="4" a:targetCellWidth="4"
a:targetCellHeight="1" a:targetCellHeight="1"
a:minResizeWidth="220dp" a:minResizeWidth="220dp"
a:minResizeHeight="50dp" a:minResizeHeight="45dp"
a:maxResizeWidth="600dp" a:maxResizeWidth="600dp"
a:maxResizeHeight="600dp" a:maxResizeHeight="600dp"
a:updatePeriodMillis="86400000" a:updatePeriodMillis="86400000"