-1
This is Luiz Felipe, baby?
So, there are some ways to change the button color, and if it’s getting the color of your theme, it’s probably the colorAccent.
Some of the ways are:
Create a new style and assign to the button (recommended for better standardization):
<style name="Button.White" parent="ThemeOverlay.AppCompat">
<item name="colorAccent">@android:color/white</item>
</style>
That on the button would be:
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:theme="@style/Button.White"
/>
You can also try the backgroundTint for Apis >= 21:
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:backgroundTint="@android:color/white"
/>
Also look for how to set these values programmatically.
I hope I’ve helped.


This is Lucas! I tried Style and it didn’t work, but backgroundTint worked! Maybe it’s because of the API itself. Thank you so much for the strength. A hug!
– Luiz Felipe