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.How can I customize my resource without using a large number of images?
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
Source: https://habr.com/ru/post/1767743/More articles:pass the index of the list item as an objectdataprovider parameter - wpfTwitter Oauth via PHP WITHOUT cURL - phpGet WCF to recognize incoming SOAP request - soapIn what situations can a PHP semaphore be used? - phpПочему этот js-код работает в Chrome и Safari? - javascriptCan't figure out why Chrome / Safari can't get ScrollHeight right here - javascriptPython: there is a way to generate xsd files based on xml examples - pythonHow to facilitate communication between server thread and multiple client threads in Java - javaCreate an inline admin that displays the final model instead of the GenericForeignKey reference table - djangoHow to compare a large number in PHP? - phpAll Articles