Possible Duplicate:
how to drag an image by touching in android?
how to moving bitmap left and righ with drag finger with may destination point boundary
ilustration
B--------o1-----------o2-----------o3
B = Bitmap
o1 = my destination point one
o2 = my destination point two
o3 = my destination point three
if bitmap drag to righ then bitmap on my destination point one
---------B---------o2-----------o3
if bitmap on my destination point one drag to right then bitmap change to my destination point two
----------o1--------B-------------o3
if bitmap on my destination point two drag to left then bitmap back to my destination point one
----------B--------o2-------------o3
and so on..
how to implement my idea to android code?
please give me sample code because i am newbie on android.