D
D
dmusov12021-03-28 14:59:32
Android
dmusov1, 2021-03-28 14:59:32

I can't change the color of the button through a custom xml file, how can I fix it?

created a custom xml file, where I indicated the orange color, and rounded the corners a little, after creating the button, I specified the created xml file as a background, but the color of the button remained the same, what could be the matter?

60606f611caff664635868.png
60606f66b18bc614779291.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dewerro, 2021-03-29
@Dewerro

Add the app:backgroundTint="@null" attribute to the button in activity_main

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question