0
我想單擊按鈕時顯示活動圖像。但是,如果我沒有點擊,顯示正常的圖像樣式。我該怎麼做?請幫助我。要顯示活動圖像,如果我點擊按鈕
icon_home_config.xml
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_pressed="true" android:drawable="@drawable/home_button_hover" />
<item android:state_focused="true" android:drawable="@drawable/home_button_hover" />
<item android:drawable="@drawable/home_button"/>
</selector>