SupportMapFragment.getmap() returns null

前端 未结 6 739
刺人心
刺人心 2020-11-30 11:49

I\'m trying to load SupportMapFragment dynamically in a fragment, here is my onCreateView() method:

@Override
    public View onCreateView(LayoutInflater inf         


        
6条回答
  •  南笙
    南笙 (楼主)
    2020-11-30 12:43

    An up to date solution for this problem is to use getMapAsync (OnMapReadyCallback callback) instead.

提交回复
热议问题