title: Set Position of Seekbar below an Image View
body: <p>Im quite new to android I have an Image view and a seekbar,the user is allowed to load image which is displayed in the image view,the seek bar should be just below the image view.I have the following code in Main.xml</p>
  
  <pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:tools="http://schemas.android.com/tools"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:paddingBottom="@dimen/activity_vertical_margin"
      android:paddingLeft="@dimen/activity_horizontal_margin"
      android:paddingRight="@dimen/activity_horizontal_margin"
      android:paddingTop="@dimen/activity_vertical_margin"
      tools:context=".MainActivity" &gt;
  
      &lt;ImageView
          android:id="@+id/imageView1"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_centerHorizontal="true"
          android:layout_marginTop="148dp"
          android:src="@drawable/ic_launcher" /&gt;
  
      &lt;SeekBar
          android:id="@+id/seekBar1"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:layout_alignParentLeft="true"
          android:layout_below="@+id/imageView1"
          android:layout_marginTop="95dp" 
  
  
          /&gt;
  
      &lt;TextView
          android:id="@+id/textView1"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_alignParentTop="true"
          android:layout_alignRight="@+id/imageView1"
          android:layout_marginRight="30dp"
          android:layout_marginTop="78dp"
          android:text="TextView" /&gt;
  
      &lt;Button
          android:id="@+id/button1"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_alignParentBottom="true"
          android:layout_centerHorizontal="true"
          android:layout_marginBottom="31dp"
          android:text="Button" 
          android:onClick="clickme"
  
          /&gt;
  
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>The problems is when i load an Image of different size the seekbar is covered by the image view.I think i should resize the image or set some property of the imageview like 'Strech' in C# so that a proper layout is maintained.Can some one show me the right path</p>