1

Is it possible to update the replaced fragment? For example, FragmentA got a variable stored value 5 and display on the screen, after replaced by FragmentB by using (FragmentTransaction().replace()). And user will do something on FragmentB, once user pressed backbutton, FragmentA will call from backstack, and value will be updated accordingly user did on fragment B.

I known once user press backbutton, the FragmentA will refresh/reload. But I do use a variable to control or restrict FragmentA refresh the whole fragment. I just wish to update the only view. If got example will be better.

4

1 に答える 1