I have this layout with 2 buttons but they are attached side by side, How can I put a gap or spacing between them. And how can I make the buttons change color when I click
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical"
android:padding="30dp" >
<LinearLayout
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:paddingTop="20dp" >
    <Button
        android:id="@+id/login"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_weight="0.40"
        android:background="#FF55FF"
        android:text="Login"
        android:textColor="#FFFFFF" />
    <Button
        android:id="@+id/register"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_weight="0.40"
        android:background="#FF55FF"
        android:text="Register"
        android:textColor="#FFFFFF" />
</LinearLayout>
 
     
     
    