I found it more convenient to switch layouts by hiding and showing panels, which support all the views. That way, display is instant between layouts.
Before displaying a layout, I test if the panel has been intialized, and if not, then I add the layout to activity.
That worked just fine, until I used CC2 to pick pictures. For some reason, if I go to pick a picture, and simply cancel with the Back button, I do not find the layout I went from. All I see is the plain color of the empty activity.
I then tried to test if the panel was still initialized, and it was, but no way to show it, or bring it to front. It seems to be gone, but still shows initialized.
I then used RemoveAllViews, and loaded again the layout.
But when I go to another layout previously initialized, although all views have been removed, its panel still shows as initialized.
Should it not show as not initialized, since it has been removed ?
Before displaying a layout, I test if the panel has been intialized, and if not, then I add the layout to activity.
That worked just fine, until I used CC2 to pick pictures. For some reason, if I go to pick a picture, and simply cancel with the Back button, I do not find the layout I went from. All I see is the plain color of the empty activity.
I then tried to test if the panel was still initialized, and it was, but no way to show it, or bring it to front. It seems to be gone, but still shows initialized.
I then used RemoveAllViews, and loaded again the layout.
But when I go to another layout previously initialized, although all views have been removed, its panel still shows as initialized.
Should it not show as not initialized, since it has been removed ?