title: How to align ImageView and TextView left side and right side?
body: <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:gravity="end"
  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="com.ayush.ebook.MainActivity$PlaceholderFragment" &gt;
  
  &lt;ImageView
      android:id="@+id/imageView1"
      android:layout_width="100dp"
      android:layout_height="100dp"
      android:src="@drawable/imb" /&gt;
  
  &lt;TextView
      android:id="@+id/textView1"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_alignBottom="@+id/imageView1"
      android:layout_alignParentRight="true"
      android:layout_alignTop="@+id/imageView1"
      android:layout_toRightOf="@+id/imageView1"
      android:background="@drawable/a"
      android:textAppearance="?android:attr/textAppearanceMedium" /&gt;&lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>This is my layout. I have an ImageView on left side and TextView on right side. When I added ScrollView into it, the LinearLayout makes it up and down. I need a ScrollView as well as the way I aligned ImageView and TextView.</p>
  
  <p>Help me!</p>