You can set the maragin to the left and the mariag to the right. If you used Relative Layout, you can use the following parameters
layout_centerInParent, android: layout_centerVertical, android: layout_centerHorizontal
If you want to center the button vertically, use Center vertical true, or if you want the center button in a horizontal position, use Center Horizontal true as shown below
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="SignUp Here"
android:id="@+id/mysignup"
android:layout_alignBottom="@+id/mylogin"
android:layout_weight="1"
android:layout_centerInParent="true" <!-- use depending upon your need -->
android:layout_centerVertical="true" <!-- use depending upon your need -->
android:layout_centerHorizontal="true" <!-- use depending upon your need -->
/>
Dip Density Indepent Pixels, , 10, , , px () , , , , dip dp , dp dip