How to Place Button In center
<p>I am new to android , How to place a button in Center horizontally. I use left margin , but it doesnt work for all resolution types. I write following code</p>

<pre><code>   &lt;ImageButton 
    android:id="@+id/setPasswordImgBTN"  
    android:src="@drawable/password"
    android:layout_width="110dip"
    android:layout_height="110dip" 
    android:layout_marginLeft="90dip"
    android:layout_marginTop="60dip"&gt;
</code></pre>
