title: ImageView Fill Remaining Space
body: <p>I'm creating layout with ImageView and HorizontalScrollView. It looks like the image below.. <img src="https://i.stack.imgur.com/a9fAi.jpg" alt="enter image description here"></p>
  
  <p>when the user click one of the image at HorizontalScrollView it will display bigger image at ImageView..</p>
  
  <p>so far my code is below</p>
  
  <pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
              android:layout_width="fill_parent"
              android:layout_height="fill_parent"&gt;
  
  &lt;ImageView
  android:id="@+id/imageViewTop"
  android:layout_width="fill_parent"
  android:layout_height="fill_parent"
  android:layout_alignParentTop="true"
  /&gt;
  
  
  &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:layout_alignParentBottom="true"
          &gt;
  
      &lt;HorizontalScrollView
              android:id="@+id/mainHorizontalScrollView"
              android:layout_width="fill_parent"
              android:layout_height="wrap_content"
              &gt;
  
          &lt;LinearLayout
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:orientation="horizontal"
                  android:background="@color/orange"
                  &gt;
  
              &lt;ImageView
                      android:id="@+id/image1"
                      android:layout_width="150dp"
                      android:layout_height="150dp"
                      android:scaleType="fitXY"
                      android:src="@drawable/pic1"
                      android:padding="15dp"
                      &gt;&lt;/ImageView&gt;
  
              &lt;ImageView
                      android:id="@+id/image2"
                      android:layout_width="150dp"
                      android:layout_height="150dp"
                      android:scaleType="fitXY"
                      android:src="@drawable/pic2"
                      android:padding="15dp"
                      &gt;&lt;/ImageView&gt;
  
          &lt;/LinearLayout&gt;
  
      &lt;/HorizontalScrollView&gt;
  
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p></p>
  
  <p>above code make the ImageView fill the entire screen..what i want is the ImageView fill the remaining screen that not filled by the HorizontalScrollView.. How to do this??</p>