Android sliding menu to change content on page can this be done?
<p>The main page has a horizontalScrollView across the top and a number of TextView text fields within it. I would like to be able to scroll and click on any on the TextView text and it change the RelativeLayout to match the selection made in the HorizontalScrollView.</p>

<p>main.xml</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
&gt;
&lt;HorizontalScrollView android:id="@+id/horizontalScrollView1" android:layout_height="wrap_content" android:scrollbars="none" android:layout_width="wrap_content"&gt;
    &lt;LinearLayout android:layout_width="match_parent" android:orientation="horizontal" android:layout_height="match_parent" android:id="@+id/linearLayout1"&gt;
        &lt;TextView android:layout_height="wrap_content" android:layout_weight="1" android:layout_width="70dp" android:id="@+id/EditTOne" android:text="tOne"&gt;&lt;/TextView&gt;
        &lt;TextView android:layout_height="wrap_content" android:layout_weight="1" android:layout_width="70dp" android:id="@+id/EditTTwo" android:text="tTwo"&gt;&lt;/TextView&gt;
        &lt;TextView android:layout_height="wrap_content" android:layout_weight="1" android:layout_width="70dp" android:id="@+id/EditTThree" android:text="tThree"&gt;&lt;/TextView&gt;
        &lt;TextView android:layout_height="wrap_content" android:layout_weight="1" android:layout_width="70dp" android:id="@+id/EditTFour" android:text="tFour"&gt;&lt;/TextView&gt;
        &lt;TextView android:layout_height="wrap_content" android:layout_weight="1" android:layout_width="70dp" android:id="@+id/EditTFive" android:text="tFive"&gt;&lt;/TextView&gt;
        &lt;TextView android:layout_height="wrap_content" android:layout_weight="1" android:layout_width="70dp" android:id="@+id/EditTSix" android:text="tSix"&gt;&lt;/TextView&gt;
        &lt;TextView android:layout_height="wrap_content" android:layout_weight="1" android:layout_width="70dp" android:id="@+id/EditTSeven" android:text="tSeven"&gt;&lt;/TextView&gt;
    &lt;/LinearLayout&gt;
&lt;/HorizontalScrollView&gt;
&lt;RelativeLayout android:layout_height="wrap_content" android:layout_width="match_parent" android:id="@+id/relativeLayout1"&gt;&lt;/RelativeLayout&gt;
&lt;/LinearLayout&gt;
</code></pre>

<p>I have a second layout page called tone which would be linked to the menu option tOne in the HorizontalScrollView.</p>

<p>tone.xml </p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;LinearLayout
 xmlns:android="http://schemas.android.com/apk/res/android"
 android:orientation="vertical"
 android:layout_width="match_parent"
 android:layout_height="match_parent"&gt;
 &lt;TextView android:id="@+id/textView1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="This is tOne"&gt;&lt;/TextView&gt;    
&lt;/LinearLayout&gt;
</code></pre>

<p>The main activity will flag if one of the first 4 options are selected by writing to the LogCat. Is it possible to display the tone.xml within the relativelayout if the user clicks the tOne option from the HorizontalScrollView? Then if the user selects tTwo display ttwo.xml in the RelativeLayoutView etc?</p>

<pre><code>import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.RelativeLayout;
import android.widget.TextView;

public class SlideMenu extends Activity implements OnClickListener {
    /** Called when the activity is first created. */
    TextView tOne, tTwo, tThree, tFour, tFive, tSix, tSeven, tEight, tNine, tTen;
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);

        RelativeLayout vSpace = (RelativeLayout)findViewById(R.id.relativeLayout1);

        tOne = (TextView)findViewById(R.id.EditTOne);
        tTwo = (TextView)findViewById(R.id.EditTTwo);
        tThree = (TextView)findViewById(R.id.EditTThree);
        tFour = (TextView)findViewById(R.id.EditTFour);
        tFive = (TextView)findViewById(R.id.EditTFive);
        tSix = (TextView)findViewById(R.id.EditTSix);
        tSeven = (TextView)findViewById(R.id.EditTSeven);



        tOne.setOnClickListener(this);
        tTwo.setOnClickListener(this);
        tThree.setOnClickListener(this);
        tFour.setOnClickListener(this);
        tFive.setOnClickListener(this);
        tSix.setOnClickListener(this);
        tSeven.setOnClickListener(this);
    }
    @Override
    public void onClick(View v) {
        // TODO Auto-generated method stub
        switch(v.getId()) {

        //--------------
        case R.id.EditTOne:
            System.out.println("Text One pressed");

        break;
        case R.id.EditTTwo:
            System.out.println("Text Two pressed");
        break;
        case R.id.EditTThree:
            System.out.println("Text Three pressed");
        break;
        case R.id.EditTFour:
            System.out.println("Text Four pressed");
        break;
        }
    }
}
</code></pre>
