Questions tagged [android-photoview]

60 questions
0
votes
0 answers

how xy coordinates right places when imgeView zoom android

xy coordinates place on imageview and then zoom is apply on that. So coordinates are disturbed not placed correct places. a after apply zoom on a imageview then check second image b how to resolve after apply zoom on ImageView dots are also…
0
votes
0 answers

setOnTouchListener in PhotoView library in Android Studio

I'm using the PhotoView Library to zoom a image in my activity, but I want to use the setOnTouchListener and onTouch method to change the image if I touch in certain area of the screen. The main problem is if I use fhese methods, I can't zoom…
0
votes
2 answers

How to make PhotoView's image appear over other widgets when zoomed in flutter

I'm trying to make an Instagram clone app but I can't zoom into the app without the like, comment and share icon appearing over the zoomed-in image example I want the zoomed-in image to come above every widget on screen (even the bottomNavigationBar…
Moulik Gupta 50
  • 141
  • 1
  • 9
0
votes
1 answer

Picutre doesn't appears in the alert dialog box

I am using PhotoView to implement Pinch to Zoom feature. Fortunately enough, my app is able to fetch the picture from the given uri, but when it comes to display it, it only shows a transparent box. image_layout.xml
Abhishek Dutt
  • 1,308
  • 7
  • 14
  • 24
0
votes
1 answer

Zoom photo inside viewpager2

I tried to use PhotoِDarweeView inside ViewPager2. When I want to zoom in on the photo horizontally, it does not zoom in and instead the ViewPager2 swipes. activity_media_view:
0
votes
2 answers

I can't import PhotoView.What should I do?

I do not understand what to do with this plugin, I have been suffering for an hour .. My version is android studio 7.0.2 here is the code photoViewVersion = "2.3.0" } dependencies { implementation…
0
votes
2 answers

PhotoView library not being able to zoom in / zoom out of image

I am trying to do a simple task with PhotoView. I have an AssetImage and I am trying to display the image and the user can zoom the scale in / out. i am using the Pubspec dependency: photo_view: ^0.9.2 I found this test code online but doesn't seem…
0
votes
1 answer

findViewById with PhotoView library problem

I am trying to use PhotoView library with Kotlin. But when I try to get photoView as in exaple: val photoView = mView.findViewById(R.id.zoomImageView) I got error "Type argument is not within its bounds. Expected: View! Found: PhotoView"
Dima
  • 1,189
  • 1
  • 8
  • 12
0
votes
1 answer

Can't get to original size of image after zooming in using a PhotoView

I use Chris Bane's PhotoView to display ImageViews. After zooming in, I can't zoom out to the originial size of the image. It seems like the borders are too small, but is there any other explanation? xml photoview setup: …
Daniel Reyhanian
  • 579
  • 4
  • 26
0
votes
1 answer

How can I override the limitations of boolean PhotoViewAttacher onFling(MotionEvent, MotionEvent, float, float)?

PhotoViewAttacher's boolean onFling(MotionEvent, MotionEvent, float, float) prevents my OnSingleFlingListener's onFling method from being called unless the current scale is the minimun. I implemented OnSingleFlingListener from…
0
votes
1 answer

Restore zoom/pan matrix on paging with ViewPager + Glide + PhotoView

My use case is to have a ViewPager showing a series of PhotoView instances, where paging through the images should keep the last state of zoom and pan. PhotoView instances are created by the PagerAdapter public View instantiateItem(ViewGroup…
Simon
  • 2,994
  • 3
  • 28
  • 37
0
votes
1 answer

How to cast TransitionDrawable to BitmapDrawable?

I have use PhotoView and Glide libraries for my android project. The app is fetching images from a url and display them in a GridView. When the user clicks on a image it gets loaded into photoview which is inside a fragment of same activity. Now i…
aswal94
  • 145
  • 2
  • 14
0
votes
1 answer

Conflicts between libraries Glide/PhotoView/ZGallery

I wrote an app in which I use Glide (4.7.1 version) and PhotoView (2.1.4). Today I add another library Zgallery (version 0.3.1). When I try to run my app part of Zgallery doesnt work. I saw that Zgallery use Glide and PhotoView too, but other…
KyluAce
  • 933
  • 1
  • 8
  • 25
0
votes
1 answer

Android zoomable constraintLayout

I'm new in android and have some questions. The idea is to simulate a book page with some images and text on it and animations that zoom on a column and after clicking a button zooms on a different part of page and so on. I have seen some good…
0
votes
1 answer

PhotoView Library get color of pixels

In my app I‘m using the PhotoView Library by chrisbanes, which I use to make the image zoomable. Then I need to get the color of the pixel that is touched on the image. It works as long as the image is not moved, but when it is e.g. zoomed in, the…
Mike Kng
  • 255
  • 2
  • 11