Drawable to data url in android -


i have drawable generated library,it makes round image letter inside.

but in view have insert, accepts url, , need convert drawable url, don't know how it.

the drable looks like:

textdrawable drawable = textdrawable.builder()                             .buildround(mconnection.getuser().substring(0, 1).touppercase(), contextcompat.getcolor(getapplicationcontext(),mconnection.getcontactstatus(mcontact).getcolor()));; 

thanks in advance

but in view have insert, accepts url

stop using view , switch 1 accepts drawable.

i need convert drawable url

if want waste user's ram, cpu, , battery, can draw drawable bitmap-backed canvas, write bitmap out file (e.g., png) using compress(), try using file:/// url.

your question title suggests using data: url. unless documentation unidentified view claims view supports data scheme, not.


Comments

Popular posts from this blog

php - How to add and update images or image url in Volusion using Volusion API -

javascript - jQuery UI Splitter/Resizable for unlimited amount of columns -

javascript - IE9 error '$'is not defined -