I have just started learning my way around Android Studio and Android Development. I have been looking for ways to change the color of the text for all buttons in an application.
Can someone tell me the number of ways I can do this without having to hard code the color in each button using XML only?
I have used the below code which works but am looking for all possible ways to see which is easier to achieve.
<style>
...
<!-- changes Button text colors -->
<item name="android:textAppearanceButton">@style/Base.TextAppearance.AppCompat.Button.Custom</item>
...
</style>
<style name="Base.TextAppearance.AppCompat.Button.Custom">
<item name="android:textColor">#ffffff</item>
</style>