Can't switch between 2 fragments
<p>I'm building application with actionbar.Tab with 4 fragments.
I want to replace one of the list-fragments with other fragments by clicking on the first item of the listView inside that listFragment.</p>

<p>The xml contains only image and the list view:</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:id="@+id/joFl" 
android:layout_height="fill_parent"
android:layout_gravity="center"
android:gravity="center"
android:orientation="vertical" &gt;

&lt;ImageView
    android:id="@+id/imageView1" 
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:src="@drawable/jo_logo" /&gt;



    &lt;ListView
        android:id="@android:id/list"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:layout_gravity="center"
        android:background="@android:color/black"
        android:clickable="true"
        android:paddingTop="10dp"
        android:smoothScrollbar="true" &gt;
    &lt;/ListView&gt;


    &lt;/LinearLayout&gt;
</code></pre>

<p>and the code is:</p>

<pre><code>{
    case 0: {


        FragmentTransaction ft = getFragmentManager().beginTransaction();
        ShultzFragment sf = new ShultzFragment();
        ft.replace(R.id.joFl, sf);
        ft.commit();

        break;
    }
</code></pre>

<p>I've also tried to change from LinearLayout to FrameLayout but it doesn't show the imageView and the replace() works but it show the 2 fragments together.</p>

<p>Is there a simplier way to implement that?
thanks in advance, udi</p>
