Is it possible to load a drawable from the assets folder?

Jamie picture Jamie · Feb 3, 2011 · Viewed 29k times · Source

Can you load a drawable from a sub directory in the assets (not the drawable folder) folder?

Answer

Rubycon picture Rubycon · Feb 22, 2011

Hope this help:

Drawable d = Drawable.createFromStream(getAssets().open("Cloths/btn_no.png"), null);