1

Android DialogFragment: How to preserve view in multiple show() invocation?

view story
linux-howto

http://stackoverflow.com – I have a dialog fragment using a custom layout with a quite complex View hierarchy. The code for the dialog fragment is more or less similar to the following. public class CardDetailDialog extends DialogFragment { public CardDetailDialog() { setRetainInstance(true); setStyle(STYLE_NORMAL, android.R.style.Theme_Light); } @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View view = inflater.inflate(R.layout.card_detail_dialog, container, false); /* Modify some view objec (HowTos)