Partial XML code - Nested Layouts


<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  android:layout_width="fill_parent"
  android:layout_height="fill_parent"
  android:background="#000000"
  android:orientation="vertical" >
    
  <TextView 
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:textColor="#FFFFFF"
    android:gravity="center_horizontal|center_vertical"
    android:textSize="20sp"
    android:layout_margin="10sp"
    android:text="Your Name" />
    
 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:layout_marginTop="20sp">
 
    <TextView
      android:id="@+id/number1Text"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:textColor="#FFFFFF"
      android:textSize="20sp"
      android:layout_margin="10sp"
      android:text="Number1:" />
    
    <EditText
      android:id="@+id/number1"
      android:layout_width="100sp"
      android:layout_height="wrap_content"
      android:textColor="#000000"
      android:background="#FFFFFF"
      android:textSize="20sp"
      android:layout_margin="10sp"
      android:layout_toRightOf="@+id/number1Text"
      android:text="4.0" />
       
    </RelativeLayout>
    
    
  <TableLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:layout_marginTop="20sp"
    android:stretchColumns="1" >
    <TableRow>
      <TextView
        android:layout_column="0"
        android:layout_height="40sp"
        android:layout_width="150sp"
        android:gravity="center_horizontal|center_vertical"
        android:textColor="#000000"
        android:textSize="20sp"
        android:textStyle="bold"
        android:background="#69BEDB"
        android:text="A"/>

      <TextView
        android:layout_column="1"
        android:layout_height="40sp"
        android:gravity="center_horizontal|center_vertical"
        android:textColor="#000000"
        android:textSize="20sp"
        android:textStyle="bold"
        android:background="#59D579"
        android:text="B"/>
    </TableRow>

  </TableLayout>
    
</LinearLayout>