Android三种方法设置ImageView的图片:
ImageView imageview=(ImageView) findViewById(R.id.imageview);
方法一:
imageview.setImageResource(R.drawable.plane);
方法二:
Bitmap bm=BitmapFactory.decodeResource(getResources(), R.drawable.plane);
imageview.setImageBitmap(bm);
方法三:
imageview.setImageDrawable(getResources().getDrawable(R.drawable.plane));