Android setX() and setY() behaving weird

后端 未结 6 1326
情歌与酒
情歌与酒 2021-01-17 23:10

I am trying to dynamically create and then move an image in an Android activity. However, the setX() and setY() methods seem to not work correctly. It correctly sets the pos

6条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-17 23:25

    As someone who actually facing this problem, I have solve this issue by removing any padding in the parentView. The padding seem cause a change in the layout size

提交回复
热议问题