1

ダブルタップ後に scale=4 に設定したい

onCreate() で:

         imageView = (ImageView)rootView.findViewById(R.id.imageView1);
         mAttacher = new PhotoViewAttacher(imageView);
         imageLoader.displayImage(globalWallImages.get(position).preview, imageView, options);
         mAttacher.setOnDoubleTapListener(this);

私は設定mAttacher.setOnDoubleTapListener(this); しており、このインターフェイスのメソッドでそれを行っています:

public boolean onDoubleTap(MotionEvent e) {
        Log.e("","onDoubleTap");
        mAttacher.setScale(4);
        return true;
    }

しかし、画像はスケーリングしたくない

4

1 に答える 1