This question already has answers here:
Fragment and parent activity life cycle together
                                
                                    (2个答案)
                                
                        
                                6年前关闭。
            
                    
据我了解,Android片段是Android Activity的一部分。碎片生命周期是否也与活动相同。我对此事非常困惑。请有人帮我。谢谢!!!

最佳答案

看看API Document for fragments,您将对Fragment及其生命周期有清晰的认识

10-07 20:06
查看更多