Changing position of a button

前端 未结 4 1762
有刺的猬
有刺的猬 2020-12-03 18:45

I have one button in an AbsoluteLayout in an XML file. From there I am able to set the (x,y) position of the button.

How can I get and set the (x,y) coordinates of t

4条回答
  •  死守一世寂寞
    2020-12-03 18:55

    Try using the layout-method of the View: http://developer.android.com/reference/android/view/View.html#layout(int,%20int,%20int,%20int)

提交回复
热议问题