【发布时间】:2021-03-18 10:31:47
【问题描述】:
我正在尝试更改按钮的颜色,但它不起作用。
btn_sign_in.xml
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<corners android:radius="23dp" />
<size android:height="16dp" />
<solid android:color="#045762" />
</shape>
我在按钮 xml 中给出了android:background="@drawable/btn_sign_in"。
【问题讨论】:
-
你能提供你的按钮xml吗?
-
也许this可以帮助你
-
这能回答你的问题吗? How to change the color of a button?
标签: java android android-button material-components-android