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

后端 未结 8 1660
刺人心
刺人心 2020-12-08 06:43

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

8条回答
  •  情歌与酒
    2020-12-08 06:54

    Hope this help:

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

提交回复
热议问题