I'm trying to add some kind of shadow over image button on click. Is it possible and how.
So i have button and i wished it would look pushed when i click it. So i created new xml like that:
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item
android:state_pressed="true"
android:state_enabled="true"
android:drawable="@color/btn_pushed"
/>
<item
android:drawable="@drawable/btn" />
</selector>
Ok it works fine, but i have like 50 buttons and i have to make new image for all of them. That's a lot of work, is it possible to just add some kind of shadow over it? Or something so that it will look pushed?