Hello I am using iamgeview gesture , I am using this reference "http://www.codeproject.com/Articles/319401/Simple-Gestures-on-Android" but it is working only on image, I mean only image is draging but not imageview i want to drag complete image not only image attached to that imageivew
Please give me some code for multiple gesture
Thanks
Related
I have a frame image and another image selected from gallery. What i want is to place that image inside the transparent part of that frame image and also I can apply onTouchListener on the image selected from gallery.
Like in the app whose link is provided following.
https://play.google.com/store/apps/details?id=com.lyrebirdstudio.pipcamera
Any idea or concept will be helpful.
My IDEA
Here is what i am thinking to create a relative layout and setting the Picture Frame as a background and then scaling the other image according to the size of the relative layout. Then i can apply onTouchlistener on the image easily.
Am i going in right direction or there is some better way though which i can achieve the desire results?
Thanks in advance.
http://stacktips.com/tutorials/android/how-to-drag-a-view-in-android
OR
how to drag an image by touching in android?
hope it helps..
I am very much new this issue.I want to make application like this.look at the image below,This is a brief summary of my requirement.
ok so top there is a image view.After user capture image from camera in OnActivityResult I am displaying captured image on main image view. Below that image view there is a HorzontalScrollView, Inside HorzontalScrollView i have put couple of images,like hat,spects etc...
ok so What i want is, user should be able to drag any image from HorzontalScrollView and can be able to put that small image on main image view.
Any guide/tutorial will be appreciated from guys who have worked on such functionality
Thanks
I am trying to implement a crop image for my app.
What I want to do is that I've an imageview set to 300x300 .I am taking images from
CAMERA and GALLERY now the images can be bigger than 300x300. I want to implement
a cropping tool using which I can drag the image inside imageview so that I can select the useful portion of 300x300 of the image.
I want to implement the same feature which this app implemented for cropping.
Can anyone point me in the right direction ?
Try this:
https://github.com/biokys/cropimage
But if you want to drag and fit useful portion of a image in a Imageview than you can use MultiTouch View.
https://code.google.com/p/android-multitouch-controller/
You can move the image on a custom view. Zoom and Pinch. Once you found the useful area. Take a screenshot of the imageview.
hope any of the solutions helps :)
I am implementing pinch-zoom on ImageView in my App.I am having an Activity which is holding Gallery view and I am showing my ImageView inside gallery.Independently pich-zoom is working and I am able to handle gallery fling also when image is in normal size But my problem is:
How to fling when Image is in some zoom level.
you can follow this links that adds panning, zoom, and boundary detection to ImageView.
How can I get zoom functionality for images?
Generally Gallery include Two functionality
Zooming current Image showing to User
And swiping to next/previous Image
Issue is when we zoom Image inside a Gallery, it should disable the swipe view. It should only swipe when Zoom Image Drag reach to end.
This post Tell about how to zoom an Image Perfectly. Now you have to take one ViewPager and integrate both
I have a code with a ImageViewTouch image that have pinch zoom, but i cant implement it on the gallery, i tried everything like setting in the ImageAdapter, it works but the Gallery wont scroll.
I think that another solution will be using a ImageSwitcher.
I ask if somebody have a code of a Gallery Implementing a ImageView extension with scroll enabled, or a ImageSwitcher with the Gallery scroll (No Animations).
The only thing I've found that works is to set an OnTouchListener on the Gallery itself, and then manually map the coordinates of the touch event to the underlying view with getLocationOnScreen.