Closed yshrsmz closed 5 years ago
will change this to use the text color of the button instead... Seems like you have overwritten the borderless button style though, which is not expected to look like this... or something similar, as the no thank you button is a borderless button by default
Oh, indeed it's strange. Actually I do not modify button theme globaly, so maybe it's related to MaterialComponents lib. Will investigate further
You can see here that the default borderless style is used for all buttons but the agree button:
Last release is converted to android x already and you'll see a borderless button in the demo app as well...
Ok it turned out the cause was Material Components lib.
If I use Material Components lib and its theme, Button element is converted to MaterialButton
instead of AppCompatButton
, and that MaterialButton
is not compatible with Widget.AppCompat.Button.Borderless
. Thus it is recognized as filled, elevated button.
MaterialButton
uses backgroundTint
attribute to draw its background
Would be great if we can set color for this text. Currently it uses value of TextView's default text color.