AssetManager assetManager = getAssets();例子如下:
AssetManager assetManager = getAssets();try { String[] files = assetManager.list("Files"); for(int i=0; i<FILES.LENGTH;{。。。。。。。}读assets下的图片
try { InputStream ims = assetManager.open("android_logo_small.jpg");Drawable d = Drawable.createFromStream(ims, null); // set the drawable to imageview imgAssets.setImageDrawable(d);感谢阅读,希望能帮助到大家,谢谢大家对本站的支持!