Questions tagged [android-photoview]
60 questions
0
votes
1 answer
How to handle StackOveflowError: stack size 8MB using PhotoView in Viewpager with glidev4?
I get this error when trying to swipe in the ViewPager Activity using the photoView library, I use Glide for the image, and the url are from an Intent(url are array). I also in download data from a firebase database using a model class.
This is the…

Dr4ke the b4dass
- 1,184
- 2
- 17
- 40
0
votes
2 answers
Enable and Disable Zoom in ImageView
I'm using https://github.com/chrisbanes/PhotoView to enable pinch to zoom feature on my custom imageview, however, I'm having a problem with implementing the feature on a toggle button. I wanted to make the image zoom-able when the user clicked the…

Jessica
- 1
- 1
- 3
0
votes
0 answers
Photoview ondraw
I am kind of new to the onDraw so i don't know how to go around this problem.
I want to draw a image at this location (just so i can try the rest myself). These locations are off the ontap and * the drawables width and height. This code is in a…

Darren
- 75
- 6
0
votes
0 answers
Photoview and ondraw
i have been struggling doing a onDraw with photoview. I used another class to extend photoview and override the onDraw. I get the drawable and show it on the extended class. I then get the image that is being used and create a bitmap with it. I then…

Darren
- 75
- 6
0
votes
0 answers
Two images on top of another with PhotoView
I'm using the PhotoView component from here because I want to zoom and move my image. But I would like to have several other (smaller) images on top of this image at different positions. Like this:
+----------------------------------+
| …

ffonz
- 1,304
- 1
- 11
- 29
0
votes
0 answers
Error: Android PhotoView Full Screen Throwing OutOfMemory
This project has two activities as 'activity_view_message.xml' - first activity and 'activity_full_screen_message_image.xml' -second activity.
What I want:
In first activity there is an Android 'imageView' to display an 'URI image' with 'Picasso'…

Nuwan Withanage
- 393
- 7
- 19
0
votes
1 answer
Android: get visible bitmap part from PhotoView?
I use PhotoView library: https://github.com/chrisbanes/PhotoView
This is my initial case; it's the PhotoView component (red square); the background is transparent. I load a standard picture inside.
Now, I want to extract the visible bitmap part to…

anthony
- 7,653
- 8
- 49
- 101
0
votes
0 answers
Want to show a view on clicking at the location of image
I want to show a view on canvas of the image. This view will typically allow the user to add the information of the clicked position. Now I am using PhotoView. On tap of image, I get the location and made the canvas out of it. How can I show the…

reactivedroid
- 752
- 1
- 7
- 14
0
votes
1 answer
viewpager + picasso + photoview issue
There are 2 issue that I am facing when using viewpager with picasso library and photoview library.
1) Some of the images don't zoom, rather sometimes the next image is zoomed instead.
2) Sometimes when I zoom an image, then adjacent image is also…

randy
- 765
- 7
- 24
0
votes
2 answers
how to add zoomable image
Currently i am implementing a fragment to display an image but i tried using https://github.com/chrisbanes/PhotoView and it crash
Here is the code:
public class StorelayoutFragment extends Fragment {
ImageView mImageView;
PhotoViewAttacher…

Jason
- 51
- 8
0
votes
1 answer
Retain zoom in photoview without centre aligining
I have a requirement with slight modification. This post retains the zoom on orientation change and making it centre. I don't want the image to be centre aligned. I just want the zoom to be maintained. How can this be achieved? Any help will be…

reactivedroid
- 752
- 1
- 7
- 14
0
votes
1 answer
ImageView cannot be cast to PhotoView
I am using the PhotoView library to display some images.
When I try to use PhotoView with Picasso, as shown in the sample I get ClassCastException on this line:
PhotoView photoView = (PhotoView) findViewById(R.id.imageViewTest);
This is what's…

BabbevDan
- 1,160
- 3
- 14
- 26
0
votes
0 answers
How to find out maximum bitmap size to be loaded into an ImageView?
I have an app that can among others zoom
images using chris bane's PhotoView.
When i load large images i get "OutOfMemoryError"
When i add this
to AndroidManifest.xml
I get a more specific error…

k3b
- 14,517
- 7
- 53
- 85
-1
votes
2 answers
How to adjust an overlay location in response to PhotoView zoom/pan
I am using chrisbanes/PhotoView library to handle image zoom/pan.
I am displaying an overlay on top. Basically, I add a view on top of the image view at specific coordinates.
For example, I add a custom view (where I draw an arrow in the onDraw…

Snake
- 14,228
- 27
- 117
- 250
-1
votes
1 answer
how to use photoview 2.0.0 in android studio 3
I have a problem with photoview lib from gihub... How can I cast my image to the photoview? I have a error in .java file and no more ...!!!
and it is a image of my XML file

A.T.A.P
- 3
- 1