title: How to align ImageView & TextView align right in a Linear Layout
body: <p>I would like show my Page view header like below,</p>
  
  <p><img src="https://i.stack.imgur.com/vUe3Y.png" alt="enter image description here"></p>
  
  <p>I'm using the following layout using, but the image and second textview not moving to right, its all align center. </p>
  
  <pre><code>&lt;LinearLayout
      android:layout_width="fill_parent"
      android:layout_height="0dip"
      android:layout_weight="1"
      android:orientation="horizontal" &gt;
  
      &lt;LinearLayout
          android:layout_width="0dip"
          android:layout_height="fill_parent"
          android:layout_weight="6"
          android:background="@drawable/transbg"
          android:gravity="center"
          android:orientation="vertical" &gt; 
              &lt;TableRow
                  android:id="@+id/tableRow1"
                  android:layout_width="fill_parent"
                  android:layout_height="0dip"
                  android:layout_weight="6"   
                  android:gravity="center"    
                  &gt;
                 &lt;TextView
                 android:id="@+id/txtName"
                 android:layout_width="wrap_content"
                 android:layout_height="wrap_content"                               
                 android:text="Magasin"
                 android:textColor="#FFF"               
                 android:textSize="18sp"
                 android:textStyle="bold" /&gt;
  
                 &lt;LinearLayout
                     android:layout_width="wrap_content"
                     android:layout_height="wrap_content" 
                     android:layout_weight="0"
                     android:orientation="horizontal"&gt;
  
                     &lt;ImageView
                         android:id="@+id/imageView1"
                         android:layout_width="wrap_content"
                         android:layout_height="wrap_content"
                         android:gravity="right"
                         android:src="@drawable/yellow2" /&gt;
  
                     &lt;TextView
                         android:id="@+id/tvCredits"
                         android:layout_width="wrap_content"
                         android:layout_height="wrap_content"
                         android:gravity="right"
                         android:text="test"
                         android:textColor="#fff"
                         android:textSize="16sp" /&gt;
                 &lt;/LinearLayout&gt;
  
              &lt;/TableRow&gt;                   
      &lt;/LinearLayout&gt;   
  &lt;/LinearLayout&gt; 
  </code></pre>
  
  <p>how I can align one image view and textview right aligned.</p>