How to add nested linear layout

How can we use nested layout

Here is an example of how you can use nested layouts

  <RelativeLayout>
  <scrollView>
   <RelativeLayout>
      <LinearLayout> Header<LinearLayout>
       <TextView/>  <TextView/>
       <TableLayout>
               <TableRow><ImageView/> <TextView> <Spinner><TableRow>
               <TableRow><ImageView/> <TextView> <Spinner><TableRow>
               <TableRow><ImageView/> <TextView> <Spinner><TableRow>
               <TableRow><ImageView/> <TextView> <Spinner><TableRow>
      </TableLayout>

      <TextView>
      <TableLayout>
             <TableRow>
                <LinearLayout> <ImageView><TextView></LinearLayout> 
                <EditText>
             </TableRow>
             <TableRow>
                <LinearLayout> <ImageView><TextView></LinearLayout>
                <EditText>
            </TableRow>
            <TableRow>
               <TextView> 
               < Spinner>
            </TableRow>
            <TableRow><TextView> <Spinner></TableRow>
      </TableLayout>

       <TableLayouts>---</TableLayout>

      <LinearLayout> footer</LinearLayout>
 </RelativeLayout>
 <ScrollView>
 </RelativeLayout>