Fix button appearance for older devices

+ Buttons on API < 29 now all have the same color for the customTheme
+ This can be worked on again, if someone figures out how to dynamically 
change button colors on older android APIs
This commit is contained in:
Finn M Glas 2020-05-25 18:44:57 +02:00
parent 6862be3521
commit d4ea809569
No known key found for this signature in database
GPG key ID: 25037A2E81AB459C
4 changed files with 18 additions and 8 deletions

View file

@ -31,6 +31,16 @@
<item name="android:windowAnimationStyle">@style/WindowFadeTransition</item>
</style>
<!-- Custom theme -->
<style name="customTheme" parent="Theme.AppCompat.Light.NoActionBar">
<item name="android:textColor">#ffffff</item>
<item name="android:buttonStyle">@style/Widget.AppCompat.Button.Colored</item>
<item name="colorButtonNormal">#252827</item>
<item name="android:windowDisablePreview">true</item>
<item name="android:windowAnimationStyle">@style/WindowFadeTransition</item>
</style>
<style name="AlertDialogCustom" parent="Theme.AppCompat.Light.Dialog.Alert">
<item name="android:textColor">#000000</item>
</style>