Android如何重新创建片段视图

Android如何重新创建片段视图,android,view,fragment,recreate,Android,View,Fragment,Recreate,我有一个安卓碎片。创建视图时,我使用模型中的值填充布局中的字段。 在某一点上,我想使用相同的类模型,但使用其他值重新创建视图 public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View v = inflater .inflate(R.layout.item_view, con

我有一个安卓碎片。创建视图时,我使用模型中的值填充布局中的字段。 在某一点上,我想使用相同的类模型,但使用其他值重新创建视图

 public View onCreateView(LayoutInflater inflater, ViewGroup container,
            Bundle savedInstanceState) {
        View v = inflater
                .inflate(R.layout.item_view, container, false);
        editText = (EditText) v.findViewById(R.id.question_text);
        questionText.setText(myModel.getName());
            ---------------
}
我有一个私有函数,它将在单击查看时调用

private void recreateView(MyModel model){
   myModel = model;
 //here I want to recall onCreateView or something like that but I don't know if that is ok, or is a more simple way to do that
}