title: Android nested linear layout
body: <p>I am following tutorial from the book "Android Apps for Absolute Beginners 3rd Edition", and I am stuck with nested LinearLayout for android project in API 19 (4.4.2): Parent LinearLayout is horizontal and it is supposed to hold two child LinearLayout which are vertical and the end result should be like this:</p>
  
  <p><img src="https://i.stack.imgur.com/QIjry.png" alt="enter image description here"></p>
  
  <p>But what I get is:</p>
  
  <p><img src="https://i.stack.imgur.com/UUuxV.png" alt="enter image description here"></p>
  
  <p>I tried several times, cross checked code in book, and explanations but I can't get it right.
  Here is content of activity_main.xml:</p>
  
  <pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:tools="http://schemas.android.com/tools" tools:context=".MainActivity"
      android:layout_width="match_parent" android:layout_height="match_parent"
      android:orientation="horizontal" android:background="@drawable/galaxyinfoscreen" &gt;
  
      &lt;LinearLayout android:orientation="vertical" android:layout_margin="12dip" 
          android:layout_width="wrap_content" android:layout_height="wrap_content"
          android:background="#00000000"&gt;
  
          &lt;TextView android:text="@string/hello_world" android:textColor="#FFFFFF"
              android:layout_width="wrap_content" android:layout_height="wrap_content"
              android:layout_marginLeft="48dip" android:textStyle="bold" /&gt;
  
          &lt;TextView android:text="@string/galaxy_name" android:textColor="#FFFFFF"
              android:layout_width="wrap_content" android:layout_height="wrap_content" /&gt;
  
          &lt;TextView  android:text="@string/galaxy_solar" android:textColor="#FFFFFF"
              android:layout_width="wrap_content" android:layout_height="wrap_content" /&gt;
  
          &lt;TextView android:text="@string/galaxy_habit" android:textColor="#FFFFFF"
              android:layout_width="wrap_content" android:layout_height="wrap_content" /&gt;
  
          &lt;TextView android:text="@string/galaxy_colony" android:textColor="#FFFFFF"
              android:layout_width="wrap_content" android:layout_height="wrap_content" /&gt;
  
          &lt;TextView android:text="@string/galaxy_pop" android:textColor="#FFFFFF"
              android:layout_width="wrap_content" android:layout_height="wrap_content" /&gt;
  
          &lt;TextView android:text="@string/galaxy_fleet" android:textColor="#FFFFFF"
              android:layout_width="wrap_content" android:layout_height="wrap_content" /&gt;
  
          &lt;TextView android:text="@string/galaxy_ships" android:textColor="#FFFFFF"
              android:layout_width="wrap_content" android:layout_height="wrap_content" /&gt;
      &lt;/LinearLayout&gt;
  
      &lt;LinearLayout android:orientation="vertical" android:layout_margin="33dip"
          android:layout_width="wrap_content" android:layout_height="wrap_content"
          android:background="#00000000" &gt;
  
          &lt;TextView android:text="@string/name_data" android:textColor="#FFFFFF"
              android:layout_width="wrap_content"  android:layout_height="wrap_content"
              android:id="@+id/name" /&gt;
  
          &lt;TextView  android:text="@string/solar_data" android:textColor="#FFFFFF"
              android:layout_width="wrap_content" android:layout_height="wrap_content"
              android:id="@+id/solar" /&gt;
  
          &lt;TextView android:text="@string/habit_data" android:textColor="#FFFFFF"
              android:layout_width="wrap_content" android:layout_height="wrap_content"
              android:id="@+id/habit"/&gt;
  
          &lt;TextView android:text="@string/colony_data" android:textColor="#FFFFFF" 
              android:layout_width="wrap_content" android:layout_height="wrap_content"
              android:id="@+id/colony" /&gt;
  
          &lt;TextView android:text="@string/pop_data" android:textColor="#FFFFFF"
              android:layout_width="wrap_content" android:layout_height="wrap_content"
              android:id="@+id/pop" /&gt;
  
          &lt;TextView android:text="@string/fleet_data" android:textColor="#FFFFFF"
              android:layout_width="wrap_content" android:layout_height="wrap_content"
              android:id="@+id/fleet" /&gt;
  
          &lt;TextView android:text="@string/ships_data" android:textColor="#FFFFFF"
              android:layout_width="wrap_content" android:layout_height="wrap_content"
               android:id="@+id/ships"/&gt;
      &lt;/LinearLayout&gt;
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p><strong>What could be missing from this file? What should I do to get desired result?</strong></p>