title: layout alignment: landscape vs portrait
body: <p>Can someone tell me why is the text in this layout is centered horizontally while in landscape mode, but becomes left-aligned in portrait mode?</p>
  
  <p><strong>EDIT:</strong>
  Its that way because there's no pixel limit specified for text width (ie 500dip). So if its wrap_content, android simply flows the text across all of available space. I guess its a "correct" behaviour for a text component, but completely unwanted. </p>
  
  <p>
  </p>
  
  <pre><code>&lt;LinearLayout android:id="@+id/progressLayout2"
      android:layout_height="wrap_content" android:layout_width="wrap_content"
      android:layout_centerHorizontal="true" android:layout_centerVertical="true"
      android:orientation="vertical"&gt;
  
      &lt;TextView android:layout_height="wrap_content"
          android:layout_width="wrap_content" android:layout_centerHorizontal="true"
          android:layout_centerVertical="true" android:text="@string/splash_text"
          android:id="@+id/heading_splash_text" android:textSize="45dip"
          android:textColor="#A00000" android:layout_alignParentTop="true"
          android:layout_gravity="center" android:paddingBottom="70dip"
          android:paddingTop="50dip" android:typeface="normal" android:textStyle="bold"/&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p></p>