xml中的java按钮背景
我有一个按钮,我想用粘贴替换我设计的背景。 但这一点没有改变
问题出在哪里
<Button
安卓:id="@+id/button_signIn"
安卓:layout_width="wrap_content"
安卓:layout_height="wrap_content"
安卓:layout_weight="1"
安卓:background="@drawable/et_back"
安卓:text="@string/button_signIn"
安卓:textAllCaps="false"
安卓:textColor="@color/white"
安卓:textSize="14sp"
安卓:textStyle="bold" />
# 1 楼答案
你可以试试
android:background="@drawable/et_back"
替换为android:backgroundTint="@drawable/et_back"
它可能会起作用