title: Linear layout inside Lineary layout in android
body: <p>I am trying to create a layout in android, when i create a linear layout inside a linear layout its getting added but not visible in the interface. here is my code </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;!-- Parent linear layout with vertical orientation --&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:baselineAligned="_baseline"
      android:orientation="horizontal" &gt;
  
    &lt;TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:padding="5dip"
        android:text="@string/name" /&gt;
  
    &lt;EditText
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_gravity="top"
        android:layout_marginTop="0dp"
        android:ems="10" &gt;
  
       &lt;requestFocus /&gt;
    &lt;/EditText&gt;
  
    &lt;Button
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginTop="290dp"
        android:text="@string/submit" /&gt;
  
    &lt;!-- Child linear layout with horizontal orientation --&gt;
  
    &lt;LinearLayout
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:background="#2a2a2a"
        android:baselineAligned="_baseline"
        android:orientation="horizontal" &gt;
  
    &lt;TextView android:layout_width="fill_parent" android:layout_height="wrap_content"
           android:text="Previous" android:padding="15dip" android:layout_weight="1"
           android:gravity="center"/&gt;
  
    &lt;TextView android:layout_width="fill_parent" android:layout_height="wrap_content"
           android:text="Next" android:padding="15dip" android:layout_weight="1"
           android:gravity="center"/&gt;  
  
    &lt;/LinearLayout&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>