android版本
android {
compileSdkVersion 29
defaultConfig {
minSdkVersion 21
targetSdkVersion 29
...
}
...
}
代码如下,background尝试设置drawable 均无效,请问是什么原因造成的?
<Button
android:id="@+id/logout"
android:layout_width="match_parent"
android:layout_height="@dimen/btn_height"
android:background="#ff0"
android:onClick="@{() -> handler.loginOut()}"
android:enabled="true"
android:text="@string/logout_text"
android:textSize="@dimen/btn_size"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" />