Questions tagged [android-photoview]
60 questions
7
votes
7 answers
Not able to resolve com.github.chrisbanes:PhotoView:1.3.1
I am using photoview from this library com.github.chrisbanes:PhotoView:1.3.1. But my Gradle is not getting synced.
I have already added the Maven code from Gradle Dependancy on this url: https://github.com/chrisbanes/PhotoView

Raj Suvariya
- 249
- 1
- 4
- 14
7
votes
1 answer
Can the initial image be adjusted in the Xamarin PhotoView component?
I'm using the PhotoView component to zoom and pan an image in Android. However, when it first goes to the page where the image is, it is positioned in the top left corner and when I try to pan or zoom it shifts to the middle. Does anyone have…

Jon
- 2,644
- 1
- 22
- 31
6
votes
2 answers
Animate Android PhotoView height
I am using https://github.com/chrisbanes/PhotoView and trying to animate its height.
I use ValueAnimator and update the layout height, so that triggers the internal PhotoViewAttacher and onGlobalLayoutwhich transforms the matrix.
Is there any…

Niko
- 8,093
- 5
- 49
- 85
5
votes
3 answers
Android: Switch Height and Width when View change orientation
I do use PhotoView library to ZoomIn-Out.
now when user click a button i prepared to rotate the PhotoView, Height and Width would rotate.
so width which is smaller than the screen Height.
and this result in i can't get the full screen zoom like…

MiniDev99
- 324
- 1
- 13
4
votes
1 answer
Photoview disable zoom out of image
I am using Photoview library in my Android app to enable image zoom-in functionality.
But I want to disable image zoom out. Is there a way to do it?

Sumit Shukla
- 4,116
- 5
- 38
- 57
4
votes
0 answers
PhotoView zoom is not smooth
I use PhotoView in my project and use Glide to load image into it.
ViewPager + PhotoView load local image.
Glide.with(mContext)
.load(imagePaths.get(position))
.skipMemoryCache(false)
.centerCrop()
…

Dennis Lu
- 762
- 2
- 9
- 21
3
votes
1 answer
Android PhotoView - zoom to previous position (x y coordinates and scale)
I'm using https://github.com/chrisbanes/PhotoView so user can zoom the image and then draw some point.
There is also a function to delete this point. In this case I redraw whole bitmap:
matrix = new Matrix();
canvas.drawBitmap(bmp, matrix,…

Pepa Zapletal
- 2,879
- 3
- 39
- 69
3
votes
3 answers
How to move Image to position x, y coordinate with current scale and padding
I am using Photoview Library in my project. I need to setPadding in Imageview with Zoom.
When I use with left and top padding, It working Perfectly. It also move image from left and top as I wish.
mPhotoView.setPadding(150, 150, 0, 0);
But, When I…

Abhay Koradiya
- 2,068
- 2
- 15
- 40
3
votes
3 answers
How to scale (zoom and move) to x,y coordinates of Bitmap in PhotoVIew?
I use the lib
https://github.com/chrisbanes/PhotoView
At start I have Bitmap and x,y point on the Bitmap.
How to scale and zoom image to x,y coordinates of the bitmap?
int bitmapWidth = bitmap.getWidth();//2418
int bitmapHeight =…

NickUnuchek
- 11,794
- 12
- 98
- 138
3
votes
1 answer
Showing initially full image with PhotoView in Android
I am developing an Android app. In my application, I need zoom image features like in Facebook. So, I used this library - https://github.com/chrisbanes/PhotoView. But I am having problem with showing full image when the image is first loaded.
This…

Wai Yan Hein
- 13,651
- 35
- 180
- 372
3
votes
0 answers
Android PhotoView scale to the center of some pin
I'm using PhotoView library to create my custom MapView. It includes a path on it which the following code is draws:
protected void onDraw(Canvas canvas) {
super.onDraw(canvas);
canvas.save();
…

Near1999
- 1,547
- 2
- 18
- 37
2
votes
2 answers
ViewPager + Picasso + multiple images from URL String array
Please help me. I'm following the example ViewPagerActivity from sample PhotoView of Chris Banes (https://github.com/chrisbanes/PhotoView) and I want to change the drawable with Picasso URL images. So, I'm trying to put multiple images in…

Apopei Andrei Ionut
- 451
- 7
- 25
2
votes
1 answer
Android Manipulate Images on Canvas - working with touch, move, zoom - in/out, scale
I am working on Photography app like this :
https://play.google.com/store/apps/details?id=com.photo.editor.collage.maker.photoblender&hl=en
I have to implement functionality like this :
I have 2 functionalities with this view...
1) with splash…

Milan Hirpara
- 534
- 4
- 18
2
votes
2 answers
Glide loading some images but not all
I am facing a weird thing using Glide library( v4.2.0 with compile SDK 26) along with christbanes Photoview library. I'm able to load, display some images( size <300 Kb ) and able to perform zooming gestures with the Photoview library but not on all…

Masquerade
- 3,580
- 5
- 20
- 37
2
votes
2 answers
How to zoom at particular XY coordinate(points) in ImageView
I have used this PhotoView library for custom ImageView. I want to scale the image at particular point. Here is the method I found is setScale(float scale, float focalX, float focalY, boolean animate)
I am wondering what can I pass a value of…

Kuls
- 2,047
- 21
- 39