Background als Drawable (zum testen)

This commit is contained in:
JG-Cody 2023-10-14 19:15:31 +02:00
parent a6c67a80a5
commit 0307043843
2 changed files with 26 additions and 0 deletions

View File

@ -0,0 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<stroke
android:width="0dp"
android:color="#FFFFFF" />
<gradient
android:angle="135"
android:startColor="?attr/colorTheme1"
android:startY="500"
android:centerColor="?android:attr/colorBackground"
android:endColor="?attr/colorTheme2" />
</shape>
<corners
android:bottomLeftRadius="0dp"
android:bottomRightRadius="0dp"
android:topLeftRadius="0dp"
android:topRightRadius="0dp" />
</item>
</layer-list>

View File

@ -15,6 +15,7 @@
<item name="menuBackground">@drawable/menu_themed</item>
<item name="buttonBackground">@drawable/button_themed</item>
<item name="android:navigationBarColor">?android:attr/colorBackground</item>
<item name="android:spinnerStyle">@style/SpinnerStyle</item>
<item name="actionMenuTextAppearance">@style/ActionMenuTextAppearance</item>
@ -59,6 +60,10 @@
<item name="android:popupBackground">?attr/menuBackground</item>
</style>
<style name="SpinnerStyle" parent="Widget.AppCompat.Spinner.DropDown">
<item name="android:popupBackground">?attr/dialogBackground</item>
</style>
<style name="ActionMenuTextAppearance" parent="TextAppearance.AppCompat.Widget.ActionBar.Menu">
<item name="android:textAllCaps">false</item>
</style>