public class SupportMapFragment
extends android.support.v4.app.Fragment
构造器和说明 |
---|
SupportMapFragment() |
限定符和类型 | 方法和说明 |
---|---|
AMap |
getMap()
返回一个SupportMapFragment 所使用AMap 的对象。
|
static SupportMapFragment |
newInstance()
使用默认的选项创建SupportMapFragment。
|
static SupportMapFragment |
newInstance(AMapOptions options)
根据用户传入的AMapOptions 创建SupportMapFragment。
|
void |
onAttach(Activity activity) |
void |
onCreate(Bundle savedInstanceState) |
View |
onCreateView(LayoutInflater inflater,
ViewGroup container,
Bundle savedInstanceState) |
void |
onDestroy() |
void |
onDestroyView() |
void |
onInflate(Activity activity,
AttributeSet attrs,
Bundle savedInstanceState) |
void |
onLowMemory() |
void |
onPause() |
void |
onResume() |
void |
onSaveInstanceState(Bundle outState) |
void |
setArguments(Bundle args) |
public static SupportMapFragment newInstance()
public static SupportMapFragment newInstance(AMapOptions options)
options
- 地图初始化的options对象。public AMap getMap()
public void onAttach(Activity activity)
public void onInflate(Activity activity, AttributeSet attrs, Bundle savedInstanceState)
public void onCreate(Bundle savedInstanceState)
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
public void onResume()
public void onPause()
public void onDestroyView()
public void onDestroy()
public void onLowMemory()
public void onSaveInstanceState(Bundle outState)
public void setArguments(Bundle args)