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>