@ edi233--
I think you can get touch x and y so that you can calculate the top edge and left edge. I think that (0,0) will be the upper left corner, so if you touch (100,75), you need to set the image margins in the upper part - 75 and leave up to 100
LayoutParams params = new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT); params.setMargins(100,75, 0,0);
source share