想要保存空间状态,需要给控件加一个id 或者在onCreateView 方法中 复用View NavHostFragment.findNavController(xxxxFragment.this).navigateUp()