title: How to change object positions in an android layout?
body: <p>I'm currently working on a very simple aplication, and I intended to make it change the visual aspect depending on the screen size. The application just has 6 buttons like this:</p>
  
  <p><a href="https://i.stack.imgur.com/4WBjK.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/4WBjK.jpg" alt="http://www.freeimagehosting.net/uploads/e1efb4c4d0.jpg"></a>
  </p>
  
  <p>I'm using the AbsoluteLayout, and changing the x and y of the buttons with the methods offsetLeftAndRight and offsetTopAndBottom. I'm not changing the layout of the buttons in the xml file, so the all start in the same place.</p>
  
  <p>However, if I use this methods inside the onClickMethod they sometimes appear where I want them, sometimes don't (can't figure out why), but if i use them in the onCreate method, nothing happens.</p>
  
  <p>Can someone point me in the right direction?</p>
  
  <p>Thanks</p>