B4X FEED Should not Activity.RemoveViewAt() "de-initialize" a view ?

اطلاعات موضوع

درباره موضوع در تاریخ, در دسته b4xfeed ایجاد شده و آغاز کننده آن practicalsoftمی باشد و موضوع آن: Should not Activity.RemoveViewAt() \"de-initialize\" a view ? است. این موضوع تا کنون 43 بازدید کننده و, 0 پاسخ داشته و 0 بار پسندیده شده...
نام دسته b4xfeed
نام موضوع Should not Activity.RemoveViewAt() \"de-initialize\" a view ?
آغاز کننده موضوع practicalsoft
تاریخ شروع
پاسخ‌ها
0
بازدیدها
43
پسندها
0
آخرین ارسال توسط PracticalSoft
وضعیت
موضوع بسته شده است و نمی‌توان پاسخ جدیدی فرستاد.
Jun 6, 2020
11,517
4,383
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 ?

 

وضعیت
موضوع بسته شده است و نمی‌توان پاسخ جدیدی فرستاد.
عقب
بالا