Questions tagged [android-photoview]

60 questions
1
vote
0 answers

Want to zoom a image without scaling the image

final float viewWidth = getImageViewWidth(mImageView); final float viewHeight = getImageViewHeight(mImageView); final int drawableWidth = drawable.getIntrinsicWidth(); final int drawableHeight =…
Mukund Jogi
  • 1,329
  • 5
  • 18
1
vote
0 answers

Slide to specific part of image in Android

I'm trying to build some kind of smart map. To do that I need to display specific part of picture (in this case floor plan). So we will have quite big picture (let's assume 3000x3000px) with some rooms (with irregular sizes and shapes) and if…
KyluAce
  • 933
  • 1
  • 8
  • 25
1
vote
0 answers

ViewPager2 resizing on scroll

We recently migrated from ViewPager to ViewPager2. Everything was pretty straight forward but we've noticed that randomly, when switching pages, the page being scrolled resizes down and stays that size until you interact with the page. We have no…
Psest328
  • 6,575
  • 11
  • 55
  • 90
1
vote
0 answers

Android: add marker on ImageView

I tried to created view with image (floor plan) and marker on it. I need to add marker in place, where user tapped. This marker should be another view, which not scaled, when user scales ImageView, but should stay on placed coordinates, when user…
1
vote
2 answers

Displaying picture in image view picture taken by Camera in Android

I am trying to attempt the following: Take the picture with my Android device. Populate the Image View with the picture taken in step # 1 I have tried to follow the tutorials listed…
Kartik
  • 2,541
  • 2
  • 37
  • 59
1
vote
1 answer

PhotoView - Keep zoom and the xy coordinates

I am using PhotoView Picasso on my Android application. I want to toggle two images by clicking a button, keeping the zoom and the xy coordinates. I can keep the zoom, but it is hard to keep the xy coordinates because two images have different…
JSong
  • 348
  • 3
  • 19
1
vote
0 answers

PhotoView - calculate appropriate coordinates of pin-tile view depending of displayed matrix

Let's assume I have some pin view which I want to render on top of PhotoView according current scale and zoom (aka simplified TileView). PhotoView provide method setOnMatrixChangeListener when we zoom or scroll image it will trigger with displayed…
Arsenius
  • 4,972
  • 4
  • 26
  • 39
1
vote
0 answers

how to put two images into two transparent part of a background?

I'm trying to create a photo collage with 2 images. I have a background image with 2 transparent parts divided by border. I want to put two different images into those two parts and the images can move, drag and zoom. However, 1 image should stay in…
1
vote
3 answers

not able to zoom images with photoview library

I'm using PhotoView library from here. It is not giving any error but I'm not able to zoom images. Nothing happens on trying to zoom image.I am not getting any errors from build.gradle too. How do I fix that? FullImageActivity.java: public class…
Amelia
  • 183
  • 12
1
vote
2 answers

PhotoView fit screen height maintain aspect ratio

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…
Daniel Arena
  • 117
  • 11
1
vote
2 answers

How to display text on `PhotoView`?

In my application I am displaying an image in full screen (which is actually a new activity) using the library called PhotoView. The sample image is below, so I need the text to be displayed just like that. I have posted the XML code:
1
vote
3 answers

Android Linear Layout Background Transparency

I want to change my Android LinearLayout background transparency. In here I tried to change the android:alpha="0.4" value in activity_view_full_screen_image.xml. But layout content such as PhotoView transparency is changed instead of layout…
1
vote
1 answer

Android - choose photos from library

I'm needing the simple ability to choose photos (with the option to choose up to 10) from the native album(s). I found this great library: https://github.com/esafirm/android-image-picker I have implemented it, it's great and allows me to choose…
svguerin3
  • 2,433
  • 3
  • 29
  • 53
1
vote
1 answer

Android - Having photo selection for more than one "PhotoView"?

I created more than one "PhotoView" and variables I wanted to use with the following code: public void SayfaEkle(int id) throws JSONException { LayoutInflater inflater = this.getLayoutInflater(); FrameLayout f; int photos = 0; …
user7694124
0
votes
2 answers

PhotoView in Flutter not being selected correctly onTap

Thank you for taking the time to read this. I'm having an issue with the PhotoView in flutter. Basically, I've integrated a carousel which shows all the images I have associated to an exercise. These images are imgur images which I show with the…
luke.misk
  • 25
  • 7