Navigation.findNavController(view).navigate(R.id.Fragment); /** * findNavController()内是当前的位置,navigate()内是目标的id **/