You will have to listen for touch event and will have to work on
ACTION_DOWN, ACTION_MOVE and ACTION_UP event types.
in ACTION_MOVE, you can keep setting co-ordinates of you view
according to the changing touch position's co-ordinates.
this was concept, for a coding example, check the post at this good
site:

http://www.anddev.org/basic_drag_and_drop-t3095.html

It uses code to drag images, you can use the logic to get the same
functionality on any view.
I haven't checked it though.

On Aug 5, 2:24 pm, awesomeandroid <[email protected]> wrote:
> hi all,
> i am making an user interface and i want to drag any one of them.how
> can i with ontouchevent.
> plzz reply soon

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to