I have a Fragment to edit contents. In this Fragment I have ImageView which displays image picked from gallery or camera This Fragment in turn also opens another fragment. From this fragment when I goes back to Edit fragment displayed image goes disappear and ImageViews goes blank and every thing else (Edittext,Textviews) remains persistant(filled)
Note that when I goes back to edit fragment its OnCreateView is called not OnCreate method for example when we replace fragment with another fragment and Pops Back to previous one its OnCreateView method is called first
I can't understand what is happening pls Help.
old, but maybe this can help others.
I solving this by set source path to variable, then call in onResume() method.
@Override
public void onResume() {
super.onResume();
//set again your ImageView source here..
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With