android how to recreate fragment view -
i have android fragment when i'm creating view fill fields layout values model. , @ 1 point want recreate view using same class model other values.
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()); --------------- }
i have private function wich call @ on click on view
private void recreateview(mymodel model){ mymodel = model; //here want recall oncreateview or somthing don't know if ok, or more simple way }