Q:

How to fill the layout to entire available width in Android

While developing a layout today I found some weird thing my Linear layout is not filling the available space .
//Image removed 
My left layout is re-sizing according to content but i don't want that. What I want is the right edge of left hand side layout should touch the left edge of right layout.
I have tried both fill parent and wrap content with layout_weight but nothing is happening what i want is something like this.
// Image removed
My layout code :
<?xml version="1.0" encoding="utf-8"?>

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingTop="6dp"
android:paddingBottom="6dp"
android:paddingLeft="7dp"
android:paddingRight="7dp">

<RelativeLayout
    android:id="@+id/total_top_layout"
    android:layout_height="wrap_content"
    android:layout_width="fill_parent"
    android:paddingBottom="10dp"
    android:layout_centerHorizontal="true">

    <TextView
        android:id="@+id/ammount_view"
        android:layout_height="wrap_content"
        android:layout_width="wrap_content"
        android:text="First Text Here"
        android:textSize="20sp"
        android:layout_centerVertical="true" />

    <EditText
        android:id="@+id/total_ammount_input"
        android:layout_height="wrap_content"
        android:layout_width="150dp"
        android:singleLine="true"
        android:layout_alignParentRight="true"
        android:background="@color/hologreennewdark"
        android:text="second Text"
        android:layout_centerVertical="true"
        android:padding="8dp"
        android:gravity="center"
        android:textColor="@color/WhiteSmoke" />
</RelativeLayout>

<View
    android:id="@+id/divideaftertotal"
    android:layout_width="@dimen/divide_width"
    android:layout_height="@dimen/divider_height"
    android:background="@color/YellowGreen"
    android:layout_below="@+id/total_top_layout"
/>

<RelativeLayout
    android:id="@+id/tens_view_top"
    android:layout_below="@id/divideaftertotal"
    android:layout_height="75dp"
    android:layout_width="wrap_content"

    >

    <LinearLayout
        android:id="@+id/tens_view_left"
        android:layout_alignParentLeft="true"
        android:orientation="vertical"
        android:layout_height="wrap_content"
        android:layout_width="wrap_content"
        android:layout_centerInParent="true"
        >
        <LinearLayout
            android:id="@+id/firstcoloumn"
            android:layout_height="fill_parent"
            android:layout_width="fill_parent"
            android:orientation="vertical"
            android:layout_weight="1"
            >

            <LinearLayout
                android:layout_height="wrap_content"
                android:layout_width="wrap_content"
                android:gravity="center"
                android:orientation="horizontal"
                >

                <TextView
                    android:id="@+id/amount_rupee"
                    android:layout_height="wrap_content"
                    android:layout_width="fill_parent"
                    android:text="Num1"
                    android:layout_centerVertical="true"
                    android:textSize="25sp" />

                <TextView
                    android:id="@+id/multiply_sign"
                    android:layout_height="wrap_content"
                    android:layout_width="wrap_content"
                    android:text="X"
                    android:layout_centerVertical="true"
                    android:textSize="26sp"
                    android:layout_toRightOf="@id/amount_rupee"
                    android:layout_marginLeft="40dp" />

                <TextView
                    android:id="@+id/multiple_digit"
                    android:layout_height="wrap_content"
                    android:layout_width="wrap_content"
                    android:text="Num2"
                    android:layout_centerVertical="true"
                    android:textSize="25sp"
                    android:layout_toRightOf="@+id/multiply_sign"
                    android:layout_marginLeft="40dp" />
            </LinearLayout>

            <SeekBar
                android:layout_height="wrap_content"
                android:layout_width="fill_parent"
                android:layout_below="@+id/multiple_digit"
                android:layout_marginTop="8dp"
                />

        </LinearLayout>

    </LinearLayout>

    <LinearLayout
        android:layout_height="100dp"
        android:layout_width="wrap_content"
        android:background="@color/hologreendark"
        android:layout_alignParentRight="true">

        <TextView
            android:id="@+id/amount_rupee"
            android:layout_height="fill_parent"
            android:layout_width="100dp"
            android:text="Num3"
            android:layout_centerVertical="true"
            android:textSize="25sp"
            android:gravity="center"
            />

    </LinearLayout>

</RelativeLayout>

<View
    android:id="@+id/divideaftertens"
    android:layout_width="@dimen/divide_width"
    android:layout_height="@dimen/divider_height"
    android:background="@color/YellowGreen"
    android:layout_below="@+id/tens_view_top"
    />

</RelativeLayout>

A:

On the layout android:id="@+id/tens_view_left", you could add this 2 atributes:
android:layout_alignParentLeft="true"

so that its left side is anchored in its parent's left border, and
android:layout_toLeftOf="@id/id_from_the_linear_layout_on_the_right"

And that layout is:
<LinearLayout
        android:id="@+id/id_from_the_linear_layout_on_the_right"
        android:layout_height="100dp"
        android:layout_width="wrap_content"
        android:background="@color/hologreendark"
        android:layout_alignParentRight="true">

        <TextView
            android:id="@+id/amount_rupee"
            android:layout_height="fill_parent"
            android:layout_width="100dp"
            android:text="Num3"
            android:layout_centerVertical="true"
            android:textSize="25sp"
            android:gravity="center"
            />

    </LinearLayout>

By the way, you might need to set android:orientation="horizontal"
on the layout android:id="@+id/tens_view_top"

