android-photoview

How to set rounded corners of Image View

纵然是瞬间 提交于 2020-06-29 04:42:08
问题 I'm create a Image View using of com.github.chrisbanes.photoview.PhotoView I wanna to set rounded corner programmatically of this photoview. If You know other library which is help me to pinch to zoom image and i set rounded corner as well then suggest me. 来源: https://stackoverflow.com/questions/62371965/how-to-set-rounded-corners-of-image-view

PhotoView fit screen height maintain aspect ratio

柔情痞子 提交于 2020-05-16 05:41:41
问题 I cant scaletype for my PhotoView that lets me pan side to side on an image while being full-screen, without cropping the sides using Photo.ScaleType.CENTER_CROP. How would I go about doing this? This is what I want (where the user can pan side to side to view the whole image): This is what I get (when using ScaleType.CENTER_CROP, which is closest to what I'm going for but because of the CROP, doesnt allow panning side to side.): 回答1: you can use a this ImageViewZoom. if you don't want to use

PhotoView fit screen height maintain aspect ratio

不羁岁月 提交于 2020-05-16 05:37:09
问题 I cant scaletype for my PhotoView that lets me pan side to side on an image while being full-screen, without cropping the sides using Photo.ScaleType.CENTER_CROP. How would I go about doing this? This is what I want (where the user can pan side to side to view the whole image): This is what I get (when using ScaleType.CENTER_CROP, which is closest to what I'm going for but because of the CROP, doesnt allow panning side to side.): 回答1: you can use a this ImageViewZoom. if you don't want to use

How to scale (zoom and move) to x,y coordinates of Bitmap in PhotoVIew?

安稳与你 提交于 2019-12-11 03:06:11
问题 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 = bitmap.getHeight();//1889 float x = 1209f; float y = 944f; float targetScale = 4f; attacher.setScale(targetScale, x,y, false);//it doesnt work scale = 1f scale = 4f and I want programly move center to x,y coordinates 回答1: I was facing the same issue, and finally made