第1个回答 2013-10-18
AssetManager assets = getAssets();
InputStream is = null;
try {
is = assets.open("images/" + filename);
} catch (IOException e) {
e.printStackTrace();
}
BitmapFactory.Options options = new BitmapFactory.Options();
Bitmap bitmap = BitmapFactory.decodeStream(is, null, options);
ImageView image = (ImageView) findViewById(R.id.tushow);
image.setImageBitmap(bitmap);