Merge pull request #261 from nightscout/fix/issue156_material_button_background_number_picker

add background tint to buttons in case they become material by theme
This commit is contained in:
Milos Kozak 2021-01-25 13:28:58 +01:00 committed by GitHub
commit a9f6ac8bad
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,8 +1,8 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<LinearLayout <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="130dp" android:layout_width="130dp"
android:layout_height="40dp" android:layout_height="40dp"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:orientation="horizontal" android:orientation="horizontal"
android:background="@drawable/background_darkgray"> android:background="@drawable/background_darkgray">
@ -12,7 +12,8 @@
android:layout_height="match_parent" android:layout_height="match_parent"
android:padding="0dp" android:padding="0dp"
android:textColor="@color/mdtp_white" android:textColor="@color/mdtp_white"
android:background="@null" android:background="@android:color/transparent"
app:backgroundTint="@android:color/transparent"
android:textStyle="bold" android:textStyle="bold"
android:text="—"/> android:text="—"/>
@ -34,6 +35,8 @@
android:padding="0dp" android:padding="0dp"
android:textSize="25sp" android:textSize="25sp"
android:textColor="@color/mdtp_white" android:textColor="@color/mdtp_white"
android:background="@null" android:background="@android:color/transparent"
app:backgroundTint="@android:color/transparent"
android:text="+"/> android:text="+"/>
</LinearLayout> </LinearLayout>