<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/tab_background_unselected" android:state_focused="true"/>
<item android:drawable="@drawable/tab_background_unselected" android:state_pressed="true"/>
</selector>
在button引用背景就行
android button 选中点击效果
最新推荐文章于 2024-02-23 17:45:54 发布