有关Fragment的知识点

关于判断Fragment是否可见,可以尝试参考使用Fragment中的两个方法:

final boolean isHidden()

Return true if the fragment has been hidden.

final boolean isVisible()

Return true if the fragment is currently visible to the user.

(具体有木有效果还要研究一下)

不同的情况,可能方法不一定适用

深入了解参考http://www.sixwolf.net/blog/2016/01/14/how-to-judge-if-fragment-is-visible-to-user/

记录一个退回前一个显示的Fragment的问题

http://www.eoeandroid.com/thread-550874-1-1.html

(原文http://www.androiddesignpatterns.com/2013/08/fragment-transaction-commit-state-loss.html

原文地址:https://www.cnblogs.com/feng-ye/p/6257032.html