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类setContentView
到tab2.xml
,但我想发布我的图像tab1.xml
。我创建了一个id为imageView1
的图像视图,并且我想在此处发布此图像。使用Layoutinflater将图像更新为视图