public class MapFragment
extends Fragment
构造器和说明 |
---|
MapFragment()
构造函数
|
限定符和类型 | 方法和说明 |
---|---|
BaiduMap |
getBaiduMap()
获取百度地图控制器,当执行完 onCreateView 函数之后调用,否则返回 null.
|
MapView |
getMapView()
获取百度地图控件
|
static MapFragment |
newInstance()
创建一个MapFragment实例
|
static MapFragment |
newInstance(BaiduMapOptions options)
根据给定的百度地图选项创建一个 MapFragment 实例
|
void |
onActivityCreated(Bundle savedInstanceState) |
void |
onAttach(Activity activity) |
void |
onConfigurationChanged(Configuration newConfig) |
void |
onCreate(Bundle savedInstanceState) |
View |
onCreateView(LayoutInflater inflater,
ViewGroup container,
Bundle savedInstanceState) |
void |
onDestroy() |
void |
onDestroyView() |
void |
onDetach() |
void |
onPause() |
void |
onResume() |
void |
onSaveInstanceState(Bundle outState) |
void |
onStart() |
void |
onStop() |
void |
onViewCreated(View view,
Bundle savedInstanceState) |
public static MapFragment newInstance()
public static MapFragment newInstance(BaiduMapOptions options)
options
- public BaiduMap getBaiduMap()
public MapView getMapView()
public void onAttach(Activity activity)
public void onCreate(Bundle savedInstanceState)
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
public void onViewCreated(View view, Bundle savedInstanceState)
public void onActivityCreated(Bundle savedInstanceState)
public void onStart()
public void onResume()
public void onSaveInstanceState(Bundle outState)
public void onPause()
public void onStop()
public void onDestroyView()
public void onDestroy()
public void onDetach()
public void onConfigurationChanged(Configuration newConfig)