Add a control tab into a tab page from the parent tab control in android
<p>Does anyone know how to add a control control into a tab page from the parent tab control? I have tried to add it into a tab page, but it doesn't work.</p>

<p>Here is the code I am using:</p>

<pre><code>    &lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;TabHost xmlns:android="http://schemas.android.com/apk/res/android"
        android:id="@+id/tabHost"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"&gt;
    &lt;RelativeLayout
       android:orientation="vertical"
       android:layout_width="fill_parent"
       android:layout_height="fill_parent"
       android:padding="3dp"&gt;
       &lt;FrameLayout
           android:id="@android:id/tabcontent"
           android:layout_width="fill_parent"
           android:layout_height="fill_parent"
           android:layout_weight="1"&gt;


            // first tab page from parent tab control
                    &lt;LinearLayout
                        android:id="@+id/Workout"
                        android:layout_width="fill_parent"
                        android:layout_height="fill_parent"
                        android:gravity="center_horizontal"
                        android:orientation="vertical"
                        android:paddingTop="60px" &gt;


                 .................i want to add a new tab control here


                    &lt;/LinearLayout&gt;

// second tab page from the parent tab control

            &lt;LinearLayout
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:id="@+id/Analytics"
        android:orientation="vertical"
        android:paddingTop="60px"
         &gt;

                &lt;/LinearLayout&gt;

            &lt;Button
                android:id="@+id/btn_StartWorkOut"
                android:gravity="center_horizontal"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:text="Start Workout" /&gt;
         &lt;/LinearLayout&gt;


// third tab page from the parent tab control  
                                       &lt;LinearLayout
                             android:layout_width="fill_parent"
                            android:layout_height="wrap_content"
                            android:id="@+id/Settings"
                            android:orientation="vertical"
                            android:paddingTop="60px"
                             &gt;

                         &lt;/LinearLayout&gt;



       &lt;/FrameLayout&gt;
       &lt;TabWidget
           android:id="@android:id/tabs"
           android:layout_width="fill_parent"
           android:layout_height="wrap_content"
           android:layout_alignBottom = "@android:id/tabcontent"
           /&gt;
    &lt;/RelativeLayout&gt;
&lt;/TabHost&gt;
</code></pre>

<p>Any help would be appreciated.</p>

<p>Thanks,</p>

<p>Charles</p>
