Fragment Pagination - Replacing Touch Handler
<p>I'm trying to build an app with many tabs (like many iPhone apps), using the fragments navigation inside tabs. I'm using Support V4 lib.</p>

<p>So the framework is:
TabActivity->FragmentActivity->Fragments</p>

<p>In the fragment activity, the app will call this method to replace a new fragment: </p>

<pre><code>public void updateFragment(Fragment fragment) { 

    final FragmentTransaction transaction = fragmentManager
            .beginTransaction();
    transaction.replace(R.id.fragment_layout, fragment, nTag);
    transaction.addToBackStack(null);
    transaction.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_FADE);
    transaction.commit();
}
</code></pre>

<p>... and in the new fragment I also ask the root view to handle the OnTouchEvent:</p>

<pre><code>@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
        Bundle savedInstanceState) {
    // TODO Auto-generated method stub
    View root = inflater.inflate(R.layout.fragment_shopfilter, container,
            false);
    root.setOnTouchListener(new View.OnTouchListener() {
        @Override
        public boolean onTouch(View v, MotionEvent event) {
            return true;
        }
    });

    return root;
}
</code></pre>

<p>The previous fragment still gets the touch event, how do I make only the new fragment get the touch event?</p>
