示例#1
0
 @Override
 public void onViewCreated(View view, @Nullable Bundle savedInstanceState) {
   super.onViewCreated(view, savedInstanceState);
   final SurfaceView surfaceView = (SurfaceView) view.findViewById(R.id.map_surfaceview);
   surfaceView.getHolder().addCallback(this);
 }
示例#2
0
 @Override
 public void onCreate(Bundle b) {
   super.onCreate(b);
   setRetainInstance(true);
 }