setting visibility to GONE does not hide the imageView : As shown below in the below posted layout. there is an ImageView with is "cardViewImageViewRight". when I set the visiblity of this view to GONE, i expect the entire space 
this imageView occupies will disappear. but what happens is, when I set the visibility to GONE, only the image itself disappears but still the view occupies
the same space.

please let me know why when i set the visibility to GONE, only the image disappears and space occupied by the imageView still there	
**code**:

	<?xml version="1.0" encoding="utf-8"?>
	<android.support.v7.widget.CardView
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:cardview="http://schemas.android.com/apk/res-auto"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:layout_marginBottom="5dp"
    cardview:cardCornerRadius="2dp"
    cardview:cardElevation="3dp"
    cardview:cardUseCompatPadding="true">

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:orientation="horizontal"
        android:visibility="visible"
        android:weightSum="6">

        <ImageView
            android:id="@+id/cardViewImageViewLeft"
            android:layout_width="0dp"
            android:layout_height="match_parent"
            android:layout_gravity="center"
            android:layout_weight="1"
            android:src="@drawable/ic_launcher"
            android:visibility="visible" />

        <LinearLayout
            android:layout_width="0dp"
            android:layout_height="match_parent"
            android:layout_weight="4"
            android:orientation="vertical">

            <LinearLayout
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:orientation="horizontal"
                android:weightSum="6">

                <TextView
                    android:id="@+id/cardViewTextViewName"
                    android:layout_width="0dp"
                    android:layout_height="wrap_content"
                    android:layout_weight="4"
                    android:text="Name: " />

                <TextView
                    android:id="@+id/cardViewTextViewDate"
                    android:layout_width="0dp"
                    android:layout_height="wrap_content"
                    android:layout_weight="2"
                    android:text="18.08.2019" />
            </LinearLayout>

            <TextView
                android:id="@+id/cardViewTextViewDescription"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:text="Description Description Description Description" />

            <LinearLayout
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:orientation="horizontal"
                android:weightSum="7">

                <TextView
                    android:id="@+id/cardViewTextViewPriceLabel"
                    android:layout_width="0dp"
                    android:layout_height="wrap_content"
                    android:layout_weight="1"
                    android:text="Price: " />

                <TextView
                    android:id="@+id/cardViewTextViewPrice"
                    android:layout_width="0dp"
                    android:layout_height="wrap_content"
                    android:layout_weight="2"
                    android:text="299.999 " />

                <TextView
                    android:id="@+id/cardViewTextViewCurrency"
                    android:layout_width="0dp"
                    android:layout_height="wrap_content"
                    android:layout_weight="1"
                    android:text="Eur" />

                <LinearLayout
                    android:layout_width="0dp"
                    android:layout_height="wrap_content"
                    android:layout_weight="3"
                    android:gravity="end">

                    <RatingBar
                        android:id="@+id/cardViewRatingBar"
                        style="?android:attr/ratingBarStyleSmall"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:numStars="5"
                        android:rating="3"
                        android:stepSize=".5" />
                </LinearLayout>

            </LinearLayout>

        </LinearLayout>

        <ImageView
            android:id="@+id/cardViewImageViewRight"
            android:layout_width="0dp"
            android:layout_height="match_parent"
            android:layout_gravity="center"
            android:layout_weight="1"
            android:src="@drawable/ic_launcher"
            android:visibility="visible" />

    </LinearLayout>

	</android.support.v7.widget.CardView>