title: android linear layout place two items next to each other
body: <p>I have the following layout:</p>
  
  <pre><code>&lt;LinearLayout 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"
  android:orientation="vertical"
  tools:context=".MainActivity" &gt;
  
     &lt;LinearLayout
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:orientation="horizontal" 
              &gt;
  &lt;TextView
      android:id="@+id/textView1"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:text="Status:"
      android:layout_gravity="left"
      android:textAppearance="?android:attr/textAppearanceMedium" /&gt;
    &lt;ImageView
                  android:id="@+id/txcpluss_imageView_refresh"
                  android:layout_width="30dp"
                  android:layout_height="30dp"
                  android:layout_gravity="right"
                  android:clickable="true"
                  android:contentDescription="icon"
                  android:gravity="right"
                  android:src="@drawable/refresh_big" /&gt;
    &lt;/LinearLayout&gt;
   &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>But my refresh icon is not in the top right hand corner where I want it. It sits right next to the text view.</p>
  
  <p>How can I get the text view to be on the left and the refresh icon on the right with white space between them?</p>