私があなたの質問を正しく理解していれば、これが私のやり方です。
リスト フラグメント (フラグメント A) とビュー フラグメント (フラグメント B) のフラグメント クラスを作成したと仮定します。
fragmentManager を使用して、レイアウト ビューでフラグメントを交換できます。
//grab fragmentManager, this will allow us to switch out fragments
FragmentManager fragManager = getFragmentManager();
FragmentTransaction fragTransaction = fragManager.beginTransaction();
//first remove the current fragment
fragTransaction.remove(fragManager.findFragmentById(R.id.layout_view));
//replace the current FragmentA with FragmentB
fragTransaction.replace(R.id.layout_view, new FragmentB());
//add to backstack if you want the android back button to work properly
fragTransaction.addToBackStack(null);
//and lastly, we commit the changes to the fragmentManger's transaction
fragTransaction.commit();
うまくいけば、これが役に立ちます。