可以使用Selector来实现。如下,顺手写的,没测,自己研究下吧<Selector xmlns:android="http://schemas.android.com/apk/res/android"><item android:state_focused="true" android:drawable="@drawable/backon"/>
<item android:state_focused="false" android:drawable="@drawable/backoff"/></Selector>
<item android:state_focused="false" android:drawable="@drawable/backoff"/></Selector>
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货