Add Google Maps API V2 in a fragment

前端 未结 11 1978
误落风尘
误落风尘 2020-11-29 03:00

I\'m trying to show the map from the Google Maps API V2 in fragment. I tried with the SupportMapFragment, but I can\'t get the expected output. Also I\'m a beginner on this

11条回答
  •  旧时难觅i
    2020-11-29 03:38

    in addition to the answer above, I also had to put the following lines to my manifest

        
    
    

    And I also changed the layout to use SupportMapFragment instead of MapFragment

    
    

提交回复
热议问题