Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.osmdroid.samplefragments;
 
 import org.osmdroid.R;
 
public class SampleFragmentXmlLayout extends BaseSampleFragment {
	// ===========================================================
	// Fields
	// ===========================================================
	public static final String TITLE = "MapView in XML layout";
	public String getSampleTitle() {
		return ;
	}
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
	}
	public View onCreateView(LayoutInflater inflaterViewGroup containerBundle savedInstanceState) {
		View v = inflater.inflate(..null);
		return v;
		// mResourceProxy = new ResourceProxyImpl(inflater.getContext().getApplicationContext());
		// mMapView = new MapView(inflater.getContext(), 256, mResourceProxy);
		// mMapView.setUseSafeCanvas(true);
		// return mMapView;
	}
	// @Override
	// public void onActivityCreated(Bundle savedInstanceState) {
	// super.onActivityCreated(savedInstanceState);
	//
	// final Context context = this.getActivity();
	//
	// // only do static initialisation if needed
	// if (CloudmadeUtil.getCloudmadeKey().length() == 0) {
	// CloudmadeUtil.retrieveCloudmadeKey(context.getApplicationContext());
	// }
	//
	// addOverlays();
	//
	// mMapView.setBuiltInZoomControls(true);
	// mMapView.setMultiTouchControls(true);
	// }
	//
	// /**
	// * An appropriate place to override and add overlays.
	// */
	// protected void addOverlays() {
	// //
	// }
New to GrepCode? Check out our FAQ X