加载大容量图片:使用bitmap
public class MainActivity extends Activity {
private ImageView iv ;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
iv = (ImageView) findViewById(R.id.iv) ;
}
public void loadImage(View view){
Bitmap bitmap = BitmapFactory.decodeFile("/mnt/sdcard/yazi.bmp") ;
iv.setImageBitmap(bitmap) ;
}
}