[Widget] Fixed colors of MD3 widget
This commit is contained in:
parent
7d3e1f4e28
commit
0efbefb6bd
7 changed files with 26 additions and 9 deletions
|
@ -5,18 +5,20 @@
|
|||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/app_widget_md3_height"
|
||||
android:background="@drawable/app_widget_background"
|
||||
android:backgroundTint="?android:attr/colorBackground"
|
||||
android:backgroundTint="@color/widget_md3_bg_color"
|
||||
android:orientation="horizontal"
|
||||
tools:ignore="ContentDescription">
|
||||
tools:ignore="ContentDescription"
|
||||
android:theme="@style/Theme.Material3.DynamicColors.DayNight">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/image"
|
||||
android:layout_width="@dimen/app_widget_md3_image_size"
|
||||
android:layout_height="@dimen/app_widget_md3_image_size"
|
||||
android:background="@drawable/app_widget_background"
|
||||
android:layout_margin="8dp"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:scaleType="centerCrop" />
|
||||
android:layout_margin="10dp"
|
||||
android:background="@drawable/app_widget_background"
|
||||
android:scaleType="centerCrop"
|
||||
tools:src="@tools:sample/backgrounds/scenic[6]" />
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
|
@ -94,7 +96,6 @@
|
|||
android:textAppearance="@style/TextViewNormal"
|
||||
android:textColor="?android:attr/textColorSecondary"
|
||||
tools:text="Text" />
|
||||
|
||||
</LinearLayout>
|
||||
</RelativeLayout>
|
||||
</LinearLayout>
|
Loading…
Add table
Add a link
Reference in a new issue