<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_window_focused="false" android:drawable="@drawable/background_button_normal"/>
<item android:state_focused="false" android:state_pressed="true" android:drawable="@drawable/background_button_hot" />
</selector>
android通过selector设置按钮可变背景
最新推荐文章于 2017-04-11 18:30:18 发布