如何修复"support fragment manager does not contain a definition for findfragmentbyid"



我正在遵循在初始化谷歌地图时使用支持片段管理器的教程,但我收到此错误"supportfragmetmanager 不包含 FindFragmentById 的定义",有什么帮助吗?

抱歉,我在投射时使用的不是 SupportFragmentManager,而是 supportmapfragmentSupportMapFragment mapfragment = (SupportMapFragment)SupportMapFragment.FindFragmentById(Resource.Id.map);

但它应该是SupportMapFragment mapfragment = (SupportMapFragment)SupportFragmentManager.FindFragmentById(Resource.Id.map);

相关内容

最新更新