android MapView in Fragment

后端 未结 5 1356
小蘑菇
小蘑菇 2020-11-30 02:49

I want to have MapView inside my Fragment

This is my FragmentLayout xml file



        
5条回答
  •  时光说笑
    2020-11-30 03:00

    Makes sure you are overriding or calling OnDestroyView as well as OnDestroy. Something like ...

        public override void OnDestroy()
        {            
            base.OnDestroy();
            MapView.OnDestroy();
            OnDestroyView();            
        }
    
        public override void OnDestroyView()
        {            
            base.OnDestroyView();
            mapReadyCallbackList.Clear();            
    }
    

提交回复
热议问题