Dragging A View Outside Of Relativelayout
I have implemented a custom ImageView that can be dragged around when housed in a RelativeLayout. Essnetially, I change the leftMargin and topMargin of the layout parameters as the
Solution 1:
This problem can be resolved if you change the rightMargin
and bottomMargin
as well when dragging. When you change all four margins, you will get the desired behaviour.
Post a Comment for "Dragging A View Outside Of Relativelayout"