更新时间:2022-12-17 14:33:48
销毁和活动(和视图)的再创作通常发生在配置变化(通常屏幕方向变化)。您可能要检查是否这篇文章帮助和 onRetainNonconfigurationInstance() / setRetainInstance()
不会是你的问题的良药。
Destroying and re-creation of Activity (and views) usually happens on configuration change (most often screen orientation change). You may want to check if this article helps and onRetainNonconfigurationInstance()/setRetainInstance()
would not be the cure for your problems.