<pre name="code" class="html"> View view = LayoutInflater.from(getActivity()).inflate(
R.layout.check_picture, null);
LinearLayout linearlayout = (LinearLayout) view
.findViewById(R.id.linlayoutpic);
ImageView imageview = (ImageView) view
.findViewById(R.id.imageViewPicture);
imageview.setImageBitmap(BitmapFactory.decodeFile(newAddImgName2));
builderpic = new AlertDialog.Builder(getActivity())
.setIcon(android.R.drawable.ic_dialog_info)
.setView(linearlayout).create();
imageview.setOnClickListener(this);
builderpic.show();
//<span style="font-family: Arial, Helvetica, sans-serif;">check_picture</span>
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/linlayoutpic"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<ImageView
android:id="@+id/imageViewPicture"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
/>
</LinearLayout>