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 } 


Popular posts from this blog

How to calculate SNR of signals in MATLAB? -

c# - Attempting to upload to FTP: System.Net.WebException: System error -

ios - UISlider customization: how to properly add shadow to custom knob image -