You can try using the
setLayoutParams[
^] method of the
button[
^].
Create an
AbsoluteLayout[
^] object with the dimension and coordinates you want.
AbsoluteLayout.LayoutParams layout = new AbsoluteLayout.LayoutParams(width, height, xPosition, yPosition);
and use it to set the new position of the button
Button1.setLayoutParams( layout );