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
<?xml version="1.0" encoding="utf-8"?> <!-- Parent linear layout with vertical orientation --> <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" > <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:padding="5dip" android:text="@string/name" /> <EditText android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_gravity="top" android:layout_marginTop="0dp" android:ems="10" > <requestFocus /> </EditText> <Button android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="290dp" android:text="@string/submit" /> <!-- Child linear layout with horizontal orientation --> <LinearLayout android:layout_width="fill_parent" android:layout_height="fill_parent" android:background="#2a2a2a" android:baselineAligned="_baseline" android:orientation="horizontal" > <TextView android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="Previous" android:padding="15dip" android:layout_weight="1" android:gravity="center"/> <TextView android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="Next" android:padding="15dip" android:layout_weight="1" android:gravity="center"/> </LinearLayout> </LinearLayout> 
EditTextandButtonarematch_parentso pushing everything out.