gesture-imageview

Help install getsureImage . Just in android there is no finished item with Zoom function. Here in the depths of the Internet found it. But at installation he swears on R.com. something there In general, help to install it, you are a pro, I use the IDEA environment. Give instructions for a beginner, how to do it, I will be very grateful.

Took from here: How pinch zoom image in image zoom android?

  • five
    Can I at least write the norm? But give all that, give me that ... Elementary respect should also be: to formulate a question correctly and write without errors, otherwise we don’t understand what getsureImage and> R.com.that's there ... generally help to establish it - Barmaley
  • Here he wrote: "Give instructions for a beginner how to do it, I will be very grateful." As for getsureImage, there is a link at the top, for what did MINUS put it? I wrote that I need help from the pros. - Andro
  • not getsureImage , but gestureImage - be careful! - Barmaley
  • @xTIGRx, and all because the zip archive contains the library module that needs to be extracted and connected to the project. - Vladyslav Matviienko
  • @xTIGRx, If you are given an exhaustive answer, mark it as correct (click on the check mark next to the selected answer). - Deleted

1 answer 1

PhotoView - supports basic gestures, there is the possibility of more fine-tuning. To connect in the build.gradle file of your module, write in the dependencies section:

 dependencies { compile 'com.github.chrisbanes.photoview:library:1.2.2' } 

How does it work:

 ImageView mImageView; PhotoViewAttacher mAttacher; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); // Any implementation of ImageView can be used! mImageView = (ImageView) findViewById(R.id.iv_photo); // Set the Drawable displayed Drawable bitmap = getResources().getDrawable(R.drawable.wallpaper); mImageView.setImageDrawable(bitmap); // Attach a PhotoViewAttacher, which takes care of all of the zooming functionality. mAttacher = new PhotoViewAttacher(mImageView); } // If you later call mImageView.setImageDrawable/setImageBitmap/setImageResource/etc then you just need to call attacher.update(); 
  • PhotoView, supports, zooming in and out with 2 fingers ?, because gesture-imageview, supports everything, only I can’t install them, I can connect the jar library, and I don’t know zip how - Andro
  • @xTIGRx, yes, it does. And for the 2nd tapu also supports. play.google.com/store/apps ... ... sample work. I wrote above how to connect to your project. - Deadkenny
  • And how to use without hail? What you need to get out of the archive? - Andro
  • Give instructions, pliz, how to install PhotoView in IDEA, pliz. - Andro
  • @xTIGRx, if you have Android Studio, then there the assembly is done through gradle. So this is the fastest option. - Deadkenny