I need to move the position of the image with the direction of finger in the easiest way possible.I found out the direction of the finger touch but I don't know how to move the image in the direction of finger.thanks in advance.
This tutorial will be helpful to you:
http://www.zdnet.com/blog/burnette/how-to-use-multi-touch-in-android-2-part-5-implementing-the-drag-gesture/1789?tag=content;siu-container
Related
Is it possible to let the buttons move freely? like dragging it and moving it around with your finger or accelerometer.
Thank you very much for any advice you are willing to give me
http://developer.android.com/guide/topics/ui/drag-drop.html
Is this what you are looking for?
I need to add a picture over a touched position in an image or directly on camera preview.
How could get the touch coordinates and set the image in the touched area?
And If I want to move the added images?
What is the right way to code this stuff? Is there some sample or tutorial?
event.getX() and event.getY() should give you the coordinates.
Here is a more detailed answer on getting the coordinates. Get the co-ordinates of a touch event on Android
Can you please tell me if there is any library/API to detect if user draw a rectangle on screen using gesture?
Thank you.
Use android.gesture.Gesture to store a gesture. And android.gesture.GestureOverlayView to detect if user draw needed gesture.
Here is a good tutorial
Now I want to make a effect,when my finger touch on a picture on the screen, the picture will be show from the top of picture to the position I touched exactly.Can you give me some advice to achieve this effect.Thanks a million,whether or not you will be able to help me.
Not the solution, but a clue:
You will probably need to implement your own animation which will scale / translate your image. There is a lot of tuts on google.
I hope this will help you.
I want to move an image within a circle with my touch on move. I've been confused how to determine the coordinates circle boundaries when the finger moved.
For example I want to move this image like lock screen on android tabs.
http://cdn.alltouchtablet.com/wp-content/uploads/2012/03/samsung-galaxy-tab-7-plus-lock-screen.jpg
EDIT :
Now After learn the answer below, I managed to draw an circle image and moving this image around the screen.
And now, I want to restrict the image movement so that it only can moved in a circle, just like in the image above. Any ideas?
I hope you can help me. Thank you!
so I've actually not done anything like this but i know this tutorial : and the guy does something similar to what you want,
this video is one right in the middle of an entire playlist of tutorial videos if you dont get what he's doing check the previous few... as for moving the image in a circle i'm sure there'll be some way to set boundries :)
http://www.youtube.com/watch?v=9d4Wua-cxZs&list=PLB03EA9545DD188C3&index=32&feature=plpp_video
hope it was helpful!