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

How I can drag/move an imageView on pdf view? (Objective-C)

What I want is that, on top of pdf view I want to add an image (one or more than 1 image). Once I add from some button, it has to come(appear) on pdf view to any location, and based on my choice I can able to drag/move that image on any…
Nikita Patil
  • 674
  • 1
  • 7
  • 17
1
vote
2 answers

Is there a way to find whether the touch is only on the image in the image view?

I have an vector/PNG image on a image view. I need to track where the user touches on the image and mark the points. I have done this part. But I am facing a problem. Since the image shape is irregular, there is space between image and image view…
1
vote
2 answers

Using TouchImageView in RecyclerView attached with PageSnapHelper?

My app is doing a gallery which uses TouchImageView on RecyclerView. I was trying to use this class to display multiple fullscreen images in a RecyclerView attached with PageSnapHelper This works fine, but the zooming is very awkward to use .If I…
1
vote
1 answer

TouchImageView doesn't show image until after a pinch gesture

I'm using the custom view TouchImageView. However, when I set the bitmap it doesn't show the image unless I do a pinch gesture on it. public class PhotoOverlayActivity extends AppCompatActivity { public static final String CURRENT_MESSAGE_KEY =…
Suragch
  • 484,302
  • 314
  • 1,365
  • 1,393
1
vote
0 answers

MotionEvent getX() and getY(), getRawX() and getRawY() returns wrong value in a TouchImageView

Adding my TouchImageView class below, public class TouchImageView extends ImageView { Matrix matrix; // We can be in one of these 3 states static final int NONE = 0; static final int DRAG = 1; static final int ZOOM = 2; int mode = NONE; //…
1
vote
1 answer

How to programmatically adjust image width to fit in a linear layout using TouchImageView?

I am programmatically inserting a touch image view in a linear layout.If I use a normal image view the image adjust's itself when the orientation changes.But when I started using touch image view the image shrinks to a very small size.This is the…
AndroidNewBee
  • 744
  • 3
  • 12
  • 36
1
vote
1 answer

How Draw circle on Zoom able and scroll able imageview android?

I am developing an application and requirements are as below. Display image with pinch zoom and pan. For this I am using TouchImageview.java from here And it is working as expected. Draw solid circle on Image. This is also working. public class…
Biraj Zalavadia
  • 28,348
  • 10
  • 61
  • 77
1
vote
0 answers

ImageView with Matrix scale in ViewPager issue

I have a ImageView which can be dragged, scaled and zoomed and I am using the following class to do it: import android.content.Context; import android.graphics.Matrix; import android.graphics.PointF; import android.graphics.RectF; import…
JAAD
  • 12,349
  • 7
  • 36
  • 57
1
vote
2 answers

How to make ScaleType.Matrix look like ScaleType.FIT_START?

I've tried modifying xml without success. Currently this happens: The image appears in the center of my TouchImageView. ╔══════════════════════════════════════════════╗ ║ TouchImageView ║ ║ …
user1144251
  • 327
  • 1
  • 3
  • 12
1
vote
1 answer

How to implement zoom, pan and drag on Viewpager in android?

How to implement zoom, pan and drag on Viewpager in android? I have kept my images inside the viewpager ,here i could not able to pan and zoom .please kindly let me know how to do Thank you
1
vote
1 answer

TouchImageView & Volley NetworkImageView working together

I'm Using a ViewPager in my project and so far i found Volley to be very good at loading in the images for the individual pages. Volley needs com.android.volley.toolbox.NetworkImageView and TouchImageView needs com.android.touch.TouchImageView for…
Tasos
  • 5,321
  • 1
  • 15
  • 26
1
vote
0 answers

TouchImageView setImageResource not working

I'm using a TouchImageView to display a map with a custom layer depending on a certain condition.The drawable used for the TouchImageView is a LayerDrawable, declared in the xml. The TouchImageView is declared:
Stefan
  • 2,098
  • 2
  • 18
  • 29
1
vote
1 answer

TouchImageView with TextView at bottom

I successfully created TouchImageView Inside Viewpager after this I tried to make a custom TuochImageView with TextView at bottom using single row in pageradapter but unable to inflate ... For this purpose,I am using the following codes to create…
user4004217
1
vote
1 answer

android TouchImageView height don't change

I'm using TouchImageView (https://github.com/MikeOrtiz/TouchImageView) to show bitmap in full screen. When I put the normal bitmap: touchImageView.setImageBitmap(bm); If a user double tap or 2 finger-pinch-zoom the picture zooms but the…
1
vote
1 answer

how to set image resource of TouchImageView with url instead of drawable

I have this code that works with an image in the drawable resource and was wandering how I would rewrite it for an url image: import android.os.Bundle; import android.app.Activity; import android.view.Menu; public class MultiTouchActivity extends…
cinci-hal
  • 11
  • 4