androiddrawableassets

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


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


Solution

  • Hope this help:

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