Single Touch Image view in Android
Small description: When we want to touch a little image, our mental model wants to see that image as big size. In this repository, you will find how to create a generic class to make this functionality. Technique: I have used a class which has 3 constructors to receive Context, Bitmap, Uri, and Drawable id. public SingleTouchPhotoViewer (Context context, Bitmap bitmap) { this .context = context; this .mBitmap = bitmap; openDialogue(); } public SingleTouchPhotoViewer (Context context, String uri) { this .context = context; this .mUri = uri; openDialogue(); } public SingleTouchPhotoViewer (Context context, int drawableId) { this .context = context; this .mDrawable = drawableId; openDialogue(); } I create a layout which has a single ImageView to view the desired photo. dialog_imageview.xml <? xml version= "1.0" encoding= "utf-8" ?> < LinearLayout xmlns:a