我有 2 张图像 ( normal, pressed),我想在按钮的选择器中设置
<?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/recent_pressed" />
<item
android:drawable="@drawable/recent" />
</selector>
Run Code Online (Sandbox Code Playgroud)
现在我想在@drawable/recent_pressed图像中应用色调颜色。
可以对此有任何解决方案。
我不想为 imageview 创建自定义类,因为此选择器用作菜单。
我搜索了这个,但这个链接对我不起作用