Remove side spacing from button in linearLayout
<p>I have this layout designed so far</p>

<p><a href="https://i.stack.imgur.com/hNgiJ.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/hNgiJ.jpg" alt="enter image description here"></a></p>

<p>Notice the side space around both the buttons with the name "save" that I have marked with red color, I want to remove that extra spacing. </p>

<p>Both the buttons are wrapped inside linearlayout with orientation set to "vertical", I tried using <code>layout_weight, marginLeft and marginRight</code> but no success. </p>

<p>Here's how the xml code looks like only for the buttons inside the linearlayout</p>

<pre><code> &lt;LinearLayout
        android:id="@+id/buttonSection"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:orientation="vertical"

        &gt;
        &lt;!--This layout is for save and change currency buttons--&gt;


        &lt;Button
             android:id="@+id/saveButton"
             android:layout_width="fill_parent"
             android:layout_height="wrap_content"
             android:text="Save"
             android:layout_weight="1"
          /&gt;

         &lt;Button
             android:id="@+id/currencyButton"
             android:layout_width="fill_parent"
             android:layout_height="wrap_content"
             android:text="Save"
             android:layout_weight="1"
         /&gt;
    &lt;/LinearLayout&gt;
</code></pre>

<p>Just for extra information the above linearlayout is wrapped inside one more linearlayout which controls the layout of full activity</p>

<p><strong>EDIT</strong></p>

<p>Full code for the main activity xml file</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent"
    android:layout_height="match_parent"

    android:paddingTop="@dimen/activity_vertical_margin"
    android:paddingBottom="@dimen/activity_vertical_margin"
    android:background="@drawable/layer_list"
    app:layout_behavior="@string/appbar_scrolling_view_behavior"
    tools:showIn="@layout/activity_main"
    tools:context=".MainActivity"
    android:orientation="vertical"
    android:weightSum="5"
    &gt;

    &lt;LinearLayout
        android:id="@+id/layout1"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:orientation="horizontal"
        android:layout_weight="2"
        android:paddingTop="10dp"
        android:layout_marginBottom="30dp"
        &gt;

        &lt;LinearLayout
            android:id="@+id/leftCurrencySection"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_gravity="left"
            android:layout_weight="1"
            android:orientation="vertical"

            &gt;

            &lt;TextView
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:text="GBP"
                android:textSize="30dp"
                android:textColor="#ffffff"
                android:textAllCaps="true"
                android:textStyle="bold"
                /&gt;

            &lt;EditText
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:text="0.00"
                android:textSize="30dp"
                android:textColor="#ffffff"
                android:textAllCaps="true"
                android:textStyle="bold"
                android:background="@null"
                /&gt;

        &lt;/LinearLayout&gt;

        &lt;LinearLayout
            android:id="@+id/rightCurrencySection"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_gravity="right"
            android:layout_weight="1"
            android:orientation="vertical"&gt;

            &lt;TextView
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:gravity="right"
                android:text="USD"
                android:textSize="30dp"
                android:textColor="#ffffff"
                android:textAllCaps="true"
                android:textStyle="bold"
                /&gt;

            &lt;EditText
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:gravity="right"
                android:text="0.00"
                android:textSize="30dp"
                android:textColor="#ffffff"
                android:textAllCaps="true"
                android:textStyle="bold"
                android:background="@null"
                /&gt;

        &lt;/LinearLayout&gt;

    &lt;/LinearLayout&gt;
    &lt;!--End of This layout is for typing currency values--&gt;

    &lt;LinearLayout
        android:id="@+id/buttonSection"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:orientation="vertical"

        &gt;
        &lt;!--This layout is for save and change currency buttons--&gt;


            &lt;Button
                android:id="@+id/saveButton"
                android:layout_width="fill_parent"
                android:layout_height="wrap_content"
                android:text="Save"
                android:layout_weight="1"
                /&gt;

                &lt;Button
                    android:id="@+id/currencyButton"
                    android:layout_width="fill_parent"
                    android:layout_height="wrap_content"
                    android:text="Save"
                    android:layout_weight="1"
                    /&gt;
    &lt;/LinearLayout&gt;
    &lt;!--End of  save and change currency buttons--&gt;

    &lt;!--Begin Layout for calculator begin--&gt;

    &lt;GridLayout 
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:columnCount="3"
        android:layout_gravity="center"
        android:orientation="horizontal"
        android:layout_weight="1"
        &gt;


        &lt;Button android:text="1"

            /&gt;

        &lt;Button android:text="2" /&gt;

        &lt;Button android:text="3" /&gt;



        &lt;Button android:text="4" /&gt;

        &lt;Button android:text="5" /&gt;

        &lt;Button android:text="6" /&gt;



        &lt;Button android:text="7" /&gt;

        &lt;Button android:text="8" /&gt;

        &lt;Button android:text="9" /&gt;


        &lt;Button android:text="." /&gt;

        &lt;Button android:text="0" /&gt;

        &lt;Button android:text="Del" /&gt;


    &lt;/GridLayout&gt;
    &lt;!--End Layout for calculator--&gt;
    &lt;!--End Layout for calculator End--&gt;


&lt;/LinearLayout&gt;
</code></pre>