📜  在新布局android中替换片段 - 任何代码示例

📅  最后修改于: 2022-03-11 14:56:26.888000             🧑  作者: Mango

代码示例2
// put the following code in onClickListner
// public void onClickListner(View view){
Navigation.findNavController(view).navigate(R.id.action_fromFragment_toFragment);
// action_fromFragment_toFragment is the id of transformatino, look in fragment map.
// }