title: Android Button Position Programmatically
body: <p>I have a button in my application. I want to change its position programmatically. I have created a button in XML as follows:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:orientation="vertical"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"
      &gt;
  
  &lt;Button android:text="@+id/Button01" 
          android:id="@+id/Button01" 
          android:layout_width="wrap_content" 
          android:layout_height="wrap_content"
          android:layout_marginLeft="50px"
          android:layout_marginTop="10px"
          &gt;
  &lt;/Button&gt;
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>Suppose I want to set the position of the button as 100px from left (as layout_marginLeft="100px"). How can I do it programmatically? Please help me to solve the problem.</p>