how to go to next view of particular item in listview using view flipper
<p>I have written code to go to next view by selecting the perticular item in the list.
list contains many items I want to show differnt textview on differnt Item selection.
I have a problem regarding the following code..</p>

<pre><code>listview.setOnItemClickListener(new OnItemClickListener(){
      @Override
    public void onItemClick(AdapterView&lt;?&gt; a, View v, int position, long id) {

    temp=a.getItemAtPosition(position).toString();    

       if (temp=="Aries")
        {
             ViewFlipper  viewflipper= (ViewFlipper) findViewById(R.id.viewflipper);
                TextView text = (TextView) v.findViewById(R.id.item1);
                viewflipper.showNext();

        }
        if (temp=="Taurus")
        {
             ViewFlipper  viewflipper= (ViewFlipper) findViewById(R.id.viewflipper);
             viewflipper.showNext();
            TextView text = (TextView) v.findViewById(R.id.item2);   

        } 
</code></pre>

<p>xml is..</p>

<pre><code>&lt;AbsoluteLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="vertical"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
&gt;

&lt;ViewFlipper android:id="@+id/viewflipper" 
    android:layout_width="fill_parent" 
    android:layout_height="fill_parent" 
    &gt; 
    &lt;ListView android:id="@+id/listview" 
        android:layout_width="fill_parent" 
        android:layout_height="wrap_content" 
    /&gt; 
  &lt;TextView 
       android:id="@+id/item1" 
       android:background="@drawable/aries28" 
        android:layout_width="fill_parent" 
        android:layout_height="wrap_content" 
        android:text="This is for me" 
    /&gt; 

  &lt;TextView 
       android:id="@+id/item2" 
       android:background="@drawable/t28" 
        android:layout_width="fill_parent" 
        android:layout_height="wrap_content" 
        android:text="This is for you" 
    /&gt; 

&lt;/ViewFlipper&gt; 
&lt;/AbsoluteLayout&gt;
</code></pre>

<p>However, when I run this code it is showing same textview in the next view for both the items, i.e. it is showing same thing("This is for Me"). How can I solve this problem?</p>

<p>Thanks in advance..  </p>
