 <p>Many device have different resolution, so problem in your code is marginleft and margintop. Due to them your button position is different in all device. Also android:layout_weight="0.50" should not be used in Relative layout. It will have no affect.</p>