2011-04-16 64 views
0
ImageView image= 
(ImageView)getLayoutInflater().inflate(R.layout.tab1,null).findViewById(R.id.imageView1); 

Bitmap thumbnail = (Bitmap)data.getExtras().get("data"); 

image.setImageBitmap(thumbnail); 

这个充气器的问题是什么?我有两个选项卡和这个Java类setContentViewtab2.xml,但我想发布我的图像tab1.xml。我创建了一个id为imageView1的图像视图,并且我想在此处发布此图像。使用Layoutinflater将图像更新为视图

回答