title: Alignment issues with two-line button
body: <p>I'm trying to figure out why a two-line button in my application is being shifted a couple of pixels lower than the other buttons:</p>
  
  <p><img src="https://i.stack.imgur.com/U07wp.png" alt="An error dialog.  The error message is &quot;Error: No internet connection.  Please check your connection settings and try again.&quot;  There are three buttons beneath the error message: Retry, Cancel, and Network Settings.  The Network Setting button is a few pixels lower than the other buttons."></p>
  
  <p>This does not happen if I shorten the text on the third button until it fits on one line, which tells me it has something to do with the line break.  Adding <code>android:layout_gravity="top"</code> to the button's layout doesn't seem to help.  Any ideas what might be causing this one?</p>
  
  <p><strong>Edit:</strong> Here's the layout XML file:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
                android:layout_height="wrap_content"
                android:orientation="vertical"
                android:gravity="center_horizontal"
                android:padding="10dip"
                android:layout_width="wrap_content"&gt;
  
    &lt;TextView android:id="@+id/error_text"
              android:layout_height="wrap_content"
              android:layout_marginBottom="5dip"
              android:text="Place holder"
              android:layout_width="wrap_content"
              android:textSize="17dip"/&gt;
  
    &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
                  android:layout_height="wrap_content"
                  android:orientation="horizontal"
                  android:gravity="center_horizontal"
                  android:padding="10dip"
                  android:layout_width="wrap_content"&gt;
      &lt;Button android:id="@+id/ok_button"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:text="@string/ok"
              android:textColor="@color/black"
              android:textStyle="bold"/&gt;
  
      &lt;Button android:id="@+id/cancel_button"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_marginLeft="8dip"
              android:text="@string/cancel_login"
              android:textColor="@color/black"
              android:textStyle="bold"
              android:visibility="gone"/&gt;
  
      &lt;Button android:id="@+id/third_button"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_marginLeft="8dip"
              android:textColor="@color/black"
              android:textStyle="bold"
              android:visibility="gone"/&gt;
    &lt;/LinearLayout&gt;
  &lt;/LinearLayout&gt;
  </code></pre>