MapView.onMapReady never called in Fragment for load Google Map in MapView

后端 未结 6 832
野性不改
野性不改 2021-01-05 09:59

I\'ll try to show a map in my Android application on a fragment named RoeteFragment. If I debug my code I see that the method onMapReady is never c

6条回答
  •  不知归路
    2021-01-05 10:49

    By a comment from @androidnoobdev where he said to use SupportMapFragment, I've update the code in my layout file to this:

    
    
    
         
    
    
    

    Update Removed MapView b'z not required after support fragment.

    Thanks to @androidnoobdev

提交回复
热议问题