Questions tagged [touchimageview]

Extends Android ImageView to include pinch zooming, panning, fling and double tap zoom.

TouchImageView.java by Michael Ortiz

Adds panning, pinch zoom, double tap zoom, and fling to Android ImageView.

74 questions
1
vote
1 answer

Can anyone help me reset the zoom of the image in ImageView?

I made an app that downloads an image from a url (using Universal Image Loader Library) and display that image in a TouchImageView. I used Touch Image View to implement the pinch zoom functionality. I followed this tutorial to learn how to use…
Rakesh
  • 1,133
  • 4
  • 13
  • 28
1
vote
0 answers

How to move to next image in ViewPager, if the current image is in zoomed state in TouchImageView

I am using TouchImageView by Mike Ortize with my custom ViewPager as suggested by Mike Ortize. My question is, how to scroll to next image in ViewPager if the current image is in zoomed state ? Currently, in my implementation the ViewPager takes to…
Ritesh Gune
  • 16,629
  • 6
  • 44
  • 72
1
vote
0 answers

Multiple TouchImageView resets other when one's setImageDrawable is called

I am trying to use multiple TouchImageView in one View. Then on single click in TouchImageView picking image from gallery to show in TouchImageView. But the problem is when I set a new Image from gallery in one TouchImageView the other gets also…
Ashiq
  • 430
  • 1
  • 9
  • 24
1
vote
2 answers

Touch Image Zooming in android

I got a series of images in a gallery and was trying to add in the zooming functionality for the same. I read a lot on zooming in android. Worked out various examples. Finally i could create a project to zoom images by drawing that particular image…
Ruju
  • 93
  • 8
1
vote
1 answer

Scroll Horizontally and Vertically ImageView in TouchImageView in Android?

Here is the ZOOM IN AND ZOOM out TouchImageView.This is the code available ZOOM IN AND ZOOM OUT CUSTOM FUNCTION IN IMAGEVIEW for zoom in and zoom out it sucessfully zooming IN and zoomng OUT an image on Button click but i am failed to scroll…
user3233280
  • 279
  • 2
  • 7
  • 21
0
votes
1 answer

How to keep additional ImageView on same position of a zoomable ImageView - after zooming (Kotlin)

I am using the TouchImageView Repository from MikeOrtiz for Kotlin to implement a zoomable ImageView into my Android APP - so far this is easy, even when I am a greenhorn in coding. Now I want to add an additional ImageView (a red arrow) to the…
0
votes
1 answer

Disable scrolling on specific area in ViewPager

I have a ViewPager so inside this view pager I have different fragments so in first fragment I have a TouchImageView which contain 360 degree rotatable image. When I'm swiping left or right for the Touchimageview so back viewpager event also…
Menu
  • 677
  • 1
  • 12
  • 30
0
votes
1 answer

Can't drag and draw in a view when an image resource is set

I have a code to draw circles when the user touches the screen, it works perfectly until I add an ImageResource, when I do this the circle is not drawn anymore. I need to use an ImageResource because the circle will be drawn around some objects in…
zampnrs
  • 345
  • 1
  • 2
  • 13
0
votes
1 answer

CountDownTimer not cancelled on MotionEvent.ACTION_UP after starting it in ACTION_DOWN

I know that a onLongTouchListener does not exists, so I'm trying to do my own version of it, I can't use onLongClickListener because I really need the touch coordinates. My code is bellow: touchImageView.setOnTouchListener(new View.OnTouchListener()…
zampnrs
  • 345
  • 1
  • 2
  • 13
0
votes
1 answer

Load higher res on zoom, prevent resource release

What I want to accomplish is to load an image into TouchImageView (https://github.com/MikeOrtiz/TouchImageView) with glide using default size (view's size) and then on zoom I would like to replace the bitmap with higher res. My approach: …
gswierczynski
  • 3,813
  • 2
  • 21
  • 22
0
votes
0 answers

Getting the position of the click of the image in a TouchImageView, and resize the image proportionally to Zoom?

I'm having problems in the following context, I need to make signatures on a form that is an image in PNG or JPG, this functionality belongs to a mobile application with Android system. The status is in the following situation, I can place the…
0
votes
0 answers

How to Drag and Drop Images Into other imageview

I have 5 ImageViews . Now i want to perform drag and drop feature between them. i don't know how to perform this. Thanks in advance
0
votes
2 answers

TouchImageView not showing in xml

I am using TouchImageView for zooming in/out of my picture. However, after I've done adding TouchImageView.java and proceed to create a customview in xml, it didn't show up. Below is my xml file:
Zhen Jing Heng
  • 109
  • 2
  • 8
0
votes
2 answers

TouchImageView is not scrolling inside ScrollView

I have view pager in the ScrollView which contain the TouchImageView, i want to zoom and scrolling image. it's not scrolling when i touch the ImageView. my code is look like below please help me guys!
user5418227
0
votes
2 answers

How to draw or write text by hand on image selected from gallery in android?

Actually I have written a code to select image from gallery,but I dont know how to draw or write a text by hand on it.and Edited image should be saved separately in sdcard.Basically I have to make basic paint app where canvas will be my selected…