I have a button that is a nine-patch image. I do not want to provide another image for “pressed” state (that is what StateListDrawable requires). I just want it to become “darker” when it is pressed (like iOS buttons do). How can I achieve this?
I have a button that is a nine-patch image. I do not want to
Share
Use something like this:
And then
Hope this will help you 🙂