Send Imageview In this method:
private void loadPhoto(ImageView imageView) {
ImageView tempImageView = imageView;
final Dialog dialog = new Dialog(this);
dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);
dialog.setContentView(R.layout.custom_fullimage_dialog);
ImageView image = (ImageView) dialog.findViewById(R.id.fullimage);
image.setImageDrawable(tempImageView.getDrawable());
dialog.show();
dialog.setCanceledOnTouchOutside(true);
}
And Create custom_fullimage_dialog.xml
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/layout_root"
android:layout_width="300dp"
android:layout_height="300dp"
android:layout_gravity="center"
android:background="#c0c0c0"
android:orientation="vertical"
android:padding="0dp" >
<ImageView
android:id="@+id/fullimage"
android:layout_width="300dp"
android:layout_height="300dp"
android:layout_gravity="center"
android:background="@drawable/imagebackground"
android:scaleType="fitXY"
android:src="@drawable/s1" >
</ImageView>
</LinearLayout>
0 Comments
Type your Comment below and click to send comment