How to remove space between buttons?

Viewed 35

I have two buttons in LinearLayout, here is the declarative code in XML:

<LinearLayout
    android:id="@+id/ButtonsStatusGtyCtm"
    android:layout_width="250dp"
    android:layout_height="wrap_content"
    android:layout_marginTop="10dp"
    app:layout_constraintEnd_toEndOf="parent"
    app:layout_constraintStart_toStartOf="parent"
    android:background="@color/red"
    app:layout_constraintTop_toBottomOf="@+id/ButtonsRegion">

    <Button
        android:id="@+id/Cancel"
        android:layout_weight="1"
        android:background="@drawable/default_button_drop_shadow"
        android:elevation="32dp"
        android:text="@string/button_cancel"
        android:textColor="ACCEPT" />

    <Button
        android:id="@+id/Accept"
        android:layout_weight="1"
        android:background="@drawable/default_button_flavor_primary"
        android:text="CANCEL" />
</LinearLayout>

And here is the screenshot:

enter image description here

As you can see there is space in the image between two buttons.

My question is how can I decrease the space between two buttons?

0 Answers
Related