title: Dynamic Buttons directions in Android
body: <p>I made my UI with .xml, But I want to give the direction of the Button by dynamically.
  For Example;</p>
  
  <pre><code> &lt;AbsoluteLayout xmlns:android="http://schemas.android.com/apk/res/android"
          android:layout_width="fill_parent"
          android:layout_height="fill_parent"&gt;
          &lt;Button 
           android:id="@+id/backbutton"
           android:text="TEST123"
           android:layout_x="120px"
           android:layout_y="120px"
           android:layout_width="100px"
           android:layout_height="100px" /&gt;
      &lt;/AbsoluteLayout&gt;
  </code></pre>
  
  <p>Then is my activity class I changed something by dynamically like that.</p>
  
  <pre><code>    AbsoluteLayout al = new AbsoluteLayout(this);
      Button t = new Button(this);
      t.setHeight(300);
      t.setWidth(300);
      t.setText("TEST123");
      // x y ???
      setContentView(al);
  </code></pre>
  
  <p>I've changed the height and width..but I couldn't find the way to changed x and y directions.</p>