Home > Mobile >  Fragments fragments shows baidu map hang problem in Android
Fragments fragments shows baidu map hang problem in Android

Time:10-06

Public class NavigationFrament extends fragments {
Private MapView mMapView=null;
@ Override
Public View onCreateView (LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
{
SDKInitializer. The initialize (getActivity (). GetApplicationContext ());
View the View=inflater. Inflate (R.l ayout. Fragment_navigation, container, false);
MMapView=(MapView) view. The findViewById (R.i db aidumap); Return the view;
}
@ Override public void onResume () {
Super. OnResume ();
.//in the Fragment executed when onResume mMapView onResume (), map lifecycle management mMapView. OnResume ();
}
@ Override
Public void onPause () {
Super. OnPause ();
MMapView. OnPause ();
}
@ Override
Public void onDestroy () {
Super. OnDestroy ();
MMapView. OnDestroy ();
}
}
This code by baidu map development documentation activities, after the operation without error, but bad interface, normal logcat print information, help children

CodePudding user response:

Activity add fragments way preloaded patterns you are this way

CodePudding user response:

No, preload how to implement

CodePudding user response:

reference 2 floor moonlight response: 980410
no, preload how to implement

I am fragments with the home page below four columns switching
  • Related