ListView OnItemClick Listner does not work? : Am trying to call the fragment from the fragment, on a list view OnItemClick Listner. But the click listner does not work for me.
I have set the list items by using the adapter.

Here is my code.

listView.setOnItemClickListener(new AdapterView.OnItemClickListener() {
            @Override
            public void onItemClick(AdapterView<?> parent, View view, int position, long id) {

                FragmentTransaction xfragmentTransaction = mFragmentManager.beginTransaction();
                xfragmentTransaction.replace(R.id.containerView,new ProductFragment()).commit();

            }
        });