<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
通常状态
<item android:drawable="@drawable/visitor_button_no" android:state_focused="true"></item>
可点击但是没焦点
<item android:state_window_focused="false" android:state_enabled="true"
android:drawable="@drawable/visitor_button_no" />
不可点击时
<item android:state_enabled="false" android:drawable="@drawable/visitor_button_no" />
点击时
<item android:state_pressed="true" android:drawable="@drawable/visitor_button_yes" />
</selector>
button点击变色,文字变色
最新推荐文章于 2024-07-04 20:21:08 发布