Highlight the edge on Drawable in Android

When I have an ImageButton and drawable, and I want to do something like Drawer or Twitter, where when I click the button, and the corner of the image is highlighted above the edge, in the box it is yellow, on Twitter it is white. Like below.

alt text

How can I customize my resource without using a large number of images?

+3
source share
1 answer

If you just want to replace one Drawable color with another at run time, you can try changing Bitmap directly. You can find a similar example here .

, , XML Drawables , , android.

, Serge

+1

Source: https://habr.com/ru/post/1767743/


All Articles