我有一个关于Android中MVP模式的问题。我想写我自己的“应用核心”,它将为演示者、视图等提供基类。它必须简单、干净和“稳定”。all background tasks in Presenter (tasks that updates View when finished)
- restart background tasks that have been cance
当配置更改时,我试图保留片段,但即使在使用setRetainInstace(true)之后,onDestroy()也是通过屏幕旋转调用的public class HelloMoonFragment} });
}
public void onDestroyView() {
super.onDestroyView</em