title: Android LinearLayout Alignment
body: <p>Being new to android I am still learning the intricacies of layouts.  I am trying to create a simple bar on top of a map.  For the most part this works fine.</p>
  
  <p>My issue is that I want everything to be right aligned except for the Button which I want left aligned.  I have tried quite a few combinations and am unable to get desired layout. </p>
  
  <p>This is beginning to make me believe my structure as a whole is not correct.  This seems like there should be an easy fix.  What am I missing?? </p>
  
  <pre><code>   &lt;LinearLayout
          android:id="@+id/transparent_panel_hud"
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"
          android:orientation="horizontal"
          android:gravity="right"&gt;  
          &lt;Button
              android:text="View"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:drawableRight="@drawable/arrow_down"
              android:textSize="10sp"
              android:drawablePadding="3dp"/&gt;
  
          &lt;LinearLayout
              xmlns:android="http://schemas.android.com/apk/res/android"
              android:layout_width="wrap_content"
              android:layout_height="match_parent"
              android:orientation="vertical"
              android:paddingRight="15dp" &gt;
  
              &lt;TextView
                  android:id="@+id/latitude"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:layout_gravity="right"
                  android:gravity="right"
                  android:text="@string/default_latitude"
                  android:textSize="18sp" /&gt;
  
              &lt;TextView
                  android:id="@+id/longitude"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:gravity="right"
                  android:text="@string/default_longitude"
                  android:textSize="18sp" /&gt;
          &lt;/LinearLayout&gt;
  
          &lt;LinearLayout
              xmlns:android="http://schemas.android.com/apk/res/android"
              android:layout_width="wrap_content"
              android:layout_height="match_parent"
              android:orientation="vertical"
              android:paddingRight="10dp" &gt;
  
              &lt;TextView
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:layout_gravity="center"
                  android:text="@string/speed"
                  android:textSize="18sp" /&gt;
  
              &lt;TextView
                  android:id="@+id/speed"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:layout_gravity="center"
                  android:text="@string/default_speed"
                  android:textSize="18sp" /&gt;
          &lt;/LinearLayout&gt;
  
          &lt;LinearLayout
              xmlns:android="http://schemas.android.com/apk/res/android"
              android:layout_width="wrap_content"
              android:layout_height="match_parent"
              android:orientation="vertical"
              android:paddingRight="10dp" &gt;
  
              &lt;TextView
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:layout_gravity="center"
                  android:text="@string/heading"
                  android:textSize="18sp" /&gt;
  
              &lt;TextView
                  android:id="@+id/heading"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:layout_gravity="center"
                  android:text="@string/default_heading"
                  android:textSize="18sp" /&gt;
          &lt;/LinearLayout&gt;
      &lt;/LinearLayout&gt;![screenie][1]
  </code></pre>