MapView, a subclass of the Android View class, allows you to place a map in an Android View. A View represents a rectangular region of the screen, and is a fundamental building block for Android applications and widgets. Much like a MapFragment, the MapView acts as a container for the map, exposing core map functionality through the GoogleMap object.
Users of this class must forward all the activity life cycle methods - such as onCreate(), onDestroy(), onResume(), and onPause() - to the corresponding methods in the MapView class.
# 1 楼答案
Use ^{} 。引用the documentation:
# 2 楼答案
您可以添加
MapView
以查看层次结构。一定要通读这些文件,因为你要委派很多工作https://developer.android.com/reference/com/google/android/gms/maps/MapView.html