答案 0 :(得分:0)
问题不明确,如果你想从资产中加载单个图像, 那么你可以这样做。
//read image from asset
InputStream is = getAssets().open("image.jpg");
// create a drawable
Drawable drawable = Drawable.createFromStream(is, null);
//find reference to your imageview and set drawable
ImageView i=(ImageView)findViewById(R.id.image_id);
i.setImageDrawable(drawable);