Share Coding

Tutorials, Problems, Stuffs …

Android A powerful ImageView support touch and multi touch function

MikeOrtiz TouchImageView

Place into src/
In your res/layout/main_activity.xml

	    android:layout_height="match_parent" />


In your src/, onCreate()

TouchImageView touchImageView = (TouchImageView) findViewById(;
touchImageView.setOnDoubleTapListener(new GestureDetector.OnDoubleTapListener() {
    public boolean onSingleTapConfirmed(MotionEvent e) {
        return false;

    public boolean onDoubleTap(MotionEvent e) {
        return false;

    public boolean onDoubleTapEvent(MotionEvent e) {
        return false;


What you can enjoy by this TouchImageView?

Pinch zoom, dragging, fling, double tap zoom functionality and other animation polish.

Leave a Reply

Please log in using one of these methods to post your comment: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: