public class SupportMapFragment
extends android.support.v4.app.Fragment
MapView
的Fragment, 由于 API Level要求在 12 以下的应用中。
如果你的应用要求在 API Level 12以上,用 MapFragment
代替。
构造器和说明 |
---|
SupportMapFragment() |
限定符和类型 | 方法和说明 |
---|---|
TencentMap |
getMap()
获取当前Fragment的
MapView 关联的 TencentMap 对象。 |
protected void |
initMap(android.content.Context context) |
static SupportMapFragment |
newInstance(android.content.Context mContex)
创建一个新的SupportMapFragment
|
protected MapView |
onCreateMapView(android.content.Context context,
TencentMapOptions options) |
android.view.View |
onCreateView(android.view.LayoutInflater layoutinflater,
android.view.ViewGroup viewgroup,
android.os.Bundle bundle) |
void |
onDestroy() |
void |
onDestroyView() |
void |
onLowMemory() |
void |
onPause() |
void |
onResume() |
void |
onSaveInstanceState(android.os.Bundle bundle) |
void |
onStart() |
void |
onStop() |
void |
setArguments(android.os.Bundle bundle) |
void |
setOnTop(boolean isOnTop)
|
dump, equals, getActivity, getAllowEnterTransitionOverlap, getAllowReturnTransitionOverlap, getArguments, getChildFragmentManager, getContext, getEnterTransition, getExitTransition, getFragmentManager, getHost, getId, getLayoutInflater, getLayoutInflater, getLifecycle, getLoaderManager, getParentFragment, getReenterTransition, getResources, getRetainInstance, getReturnTransition, getSharedElementEnterTransition, getSharedElementReturnTransition, getString, getString, getTag, getTargetFragment, getTargetRequestCode, getText, getUserVisibleHint, getView, getViewLifecycleOwner, getViewLifecycleOwnerLiveData, getViewModelStore, hashCode, hasOptionsMenu, instantiate, instantiate, isAdded, isDetached, isHidden, isInLayout, isMenuVisible, isRemoving, isResumed, isStateSaved, isVisible, onActivityCreated, onActivityResult, onAttach, onAttach, onAttachFragment, onConfigurationChanged, onContextItemSelected, onCreate, onCreateAnimation, onCreateAnimator, onCreateContextMenu, onCreateOptionsMenu, onDestroyOptionsMenu, onDetach, onGetLayoutInflater, onHiddenChanged, onInflate, onInflate, onMultiWindowModeChanged, onOptionsItemSelected, onOptionsMenuClosed, onPictureInPictureModeChanged, onPrepareOptionsMenu, onRequestPermissionsResult, onViewCreated, onViewStateRestored, postponeEnterTransition, registerForContextMenu, requestPermissions, requireActivity, requireContext, requireFragmentManager, requireHost, setAllowEnterTransitionOverlap, setAllowReturnTransitionOverlap, setEnterSharedElementCallback, setEnterTransition, setExitSharedElementCallback, setExitTransition, setHasOptionsMenu, setInitialSavedState, setMenuVisibility, setReenterTransition, setRetainInstance, setReturnTransition, setSharedElementEnterTransition, setSharedElementReturnTransition, setTargetFragment, setUserVisibleHint, shouldShowRequestPermissionRationale, startActivity, startActivity, startActivityForResult, startActivityForResult, startIntentSenderForResult, startPostponedEnterTransition, toString, unregisterForContextMenu
protected MapView mapV
public static SupportMapFragment newInstance(android.content.Context mContex)
mContex
- 要创建的Context, 参见 Android Contextprotected void initMap(android.content.Context context)
public TencentMap getMap()
MapView
关联的 TencentMap
对象。public android.view.View onCreateView(android.view.LayoutInflater layoutinflater, android.view.ViewGroup viewgroup, android.os.Bundle bundle)
onCreateView
在类中 android.support.v4.app.Fragment
protected MapView onCreateMapView(android.content.Context context, TencentMapOptions options)
public void onResume()
onResume
在类中 android.support.v4.app.Fragment
public void onPause()
onPause
在类中 android.support.v4.app.Fragment
public void onDestroyView()
onDestroyView
在类中 android.support.v4.app.Fragment
public void onDestroy()
onDestroy
在类中 android.support.v4.app.Fragment
public void onStart()
onStart
在类中 android.support.v4.app.Fragment
public void onStop()
onStop
在类中 android.support.v4.app.Fragment
public void onLowMemory()
onLowMemory
在接口中 android.content.ComponentCallbacks
onLowMemory
在类中 android.support.v4.app.Fragment
public void onSaveInstanceState(android.os.Bundle bundle)
onSaveInstanceState
在类中 android.support.v4.app.Fragment
public void setArguments(android.os.Bundle bundle)
setArguments
在类中 android.support.v4.app.Fragment
public void setOnTop(boolean isOnTop)
isOnTop
-