public class TextureMapFragment
extends Fragment
构造器和说明 |
---|
TextureMapFragment()
构造函数
|
限定符和类型 | 方法和说明 |
---|---|
BaiduMap |
getBaiduMap()
获取百度地图控制器,当执行完 onCreateView 函数之后调用,否则返回 null.
|
TextureMapView |
getMapView()
获取百度地图控件
|
static TextureMapFragment |
newInstance()
创建一个TextureMapFragment实例
|
static TextureMapFragment |
newInstance(BaiduMapOptions options)
根据给定的百度地图选项创建一个 TextureMapFragment 实例
|
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 TextureMapFragment newInstance()
public static TextureMapFragment newInstance(BaiduMapOptions options)
options
- public BaiduMap getBaiduMap()
public TextureMapView 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)