android - Way to update Fragment's UI after state changes -


i'm trying reuse same fragment swaping instance variables in fragment. problem can't force ui update. tried:

detailfragment.setdetails(bundle); fragmenttransaction ft = getfragmentmanager().begintransaction(); ft.replace(r.id.detailfragment, detailfragment); ft.settransition(fragmenttransaction.transit_fragment_fade); ft.commit(); 

but doesn't seem make changes ui. @ same time when create new detailfragment() same code works fine , changes ui. help?

as far understand, want update 'views' in fragment. can views , set new values. eg: if textview, set new text.


Comments

Popular posts from this blog

matlab - Deleting rows with specific rules -

jquery - How would i go about shortening this code? And to cancel the previous click on click of new section? -