在片段交换替代计划onResume() [英] Alternative for the onResume() during Fragment switching

查看:104
本文介绍了在片段交换替代计划onResume()的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

onResume()方法将不会被调用。那么,有没有什么更好的办法来处理恢复操作?

onResume() method won't get called when we switch between fragments more than one time. So, is there any better way to handle resume operation?

推荐答案

我想,我已经找到了答案。这是被称为每一个片段变为可见的时间,这将迫使 onResume()的片段的链接。
片段onResume从后堆栈

I think, I have found the answer. Here is the link which will force onResume() of the fragment to be called every time the fragment becomes visible.
Fragments onResume from back stack

这篇关于在片段交换替代计划onResume()的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆