Source:
private void addGraphicsOverlay(){ Point pointGeometry = new Point(40e5, 40e5, SpatialReferences.getWebMercator()); SimpleMarkerSymbol pointSymbol = new SimpleMarkerSymbol(Color.YELLOW, 10, SimpleMarkerSymbol.Style.DIAMOND); Graphic pointGraphic = new Graphic(pointGeometry); GraphicsOverlay pointGraphicOverlay = new GraphicsOverlay(); SimpleRenderer pointRenderer = new SimpleRenderer(pointSymbol); pointGraphicOverlay.setRenderer(pointRenderer); pointGraphicOverlay.getGraphics().add(pointGraphic); mMapView.getGraphicsOverlays().add(pointGraphicOverlay); PolylineBuilder lineGeometry = new PolylineBuilder(SpatialReferences.getWebMercator()); lineGeometry.addPoint(-10e5, 40e5); lineGeometry.addPoint(20e5, 50e5); SimpleLineSymbol lineSymbol = new SimpleLineSymbol(SimpleLineSymbol.Style.SOLID, Color.BLUE, 5); Graphic lineGraphic = new Graphic(lineGeometry.toGeometry()); GraphicsOverlay lineGraphicOverlay = new GraphicsOverlay(); SimpleRenderer lineRenderer = new SimpleRenderer(lineSymbol); lineGraphicOverlay.setRenderer(lineRenderer); lineGraphicOverlay.getGraphics().add(lineGraphic); mMapView.getGraphicsOverlays().add(lineGraphicOverlay); PolygonBuilder polygonGeometry = new PolygonBuilder(SpatialReferences.getWebMercator()); polygonGeometry.addPoint(-20e5, 20e5); polygonGeometry.addPoint(20e5, 20e5); polygonGeometry.addPoint(20e5, -20e5); polygonGeometry.addPoint(-20e5, -20e5); SimpleFillSymbol polygonSymbol = new SimpleFillSymbol(Color.YELLOW, SimpleFillSymbol.Style.SOLID, null); Graphic polygonGraphic = new Graphic(polygonGeometry.toGeometry()); GraphicsOverlay polygonGraphicOverlay = new GraphicsOverlay(); SimpleRenderer polygonRenderer = new SimpleRenderer(polygonSymbol); polygonGraphicOverlay.setRenderer(polygonRenderer); polygonGraphicOverlay.getGraphics().add(polygonGraphic); mMapView.getGraphicsOverlays().add(polygonGraphicOverlay); }

Target:
private void addGraphicsOverlay(){ Point pointGeometry = new Point(40e5, 40e5, SpatialReferences.getWebMercator()); SimpleMarkerSymbol pointSymbol = new SimpleMarkerSymbol(Color.RED, 10, SimpleMarkerSymbol.Style.DIAMOND); Graphic pointGraphic = new Graphic(pointGeometry); GraphicsOverlay pointGraphicOverlay = new GraphicsOverlay(); SimpleRenderer pointRenderer = new SimpleRenderer(pointSymbol); pointGraphicOverlay.setRenderer(pointRenderer); pointGraphicOverlay.getGraphics().add(pointGraphic); mMapView.getGraphicsOverlays().add(pointGraphicOverlay); PolylineBuilder lineGeometry = new PolylineBuilder(SpatialReferences.getWebMercator()); lineGeometry.addPoint(-10e5, 40e5); lineGeometry.addPoint(20e5, 50e5); SimpleLineSymbol lineSymbol = new SimpleLineSymbol(SimpleLineSymbol.Style.SOLID, Color.BLUE, 5); Graphic lineGraphic = new Graphic(lineGeometry.toGeometry()); GraphicsOverlay lineGraphicOverlay = new GraphicsOverlay(); SimpleRenderer lineRenderer = new SimpleRenderer(lineSymbol); lineGraphicOverlay.setRenderer(lineRenderer); lineGraphicOverlay.getGraphics().add(lineGraphic); mMapView.getGraphicsOverlays().add(lineGraphicOverlay); PolygonBuilder polygonGeometry = new PolygonBuilder(SpatialReferences.getWebMercator()); polygonGeometry.addPoint(-20e5, 20e5); polygonGeometry.addPoint(20e5, 20e5); polygonGeometry.addPoint(20e5, -20e5); polygonGeometry.addPoint(-20e5, -20e5); SimpleFillSymbol polygonSymbol = new SimpleFillSymbol(Color.YELLOW, SimpleFillSymbol.Style.SOLID, null); Graphic polygonGraphic = new Graphic(polygonGeometry.toGeometry()); GraphicsOverlay polygonGraphicOverlay = new GraphicsOverlay(); SimpleRenderer polygonRenderer = new SimpleRenderer(polygonSymbol); polygonGraphicOverlay.setRenderer(polygonRenderer); polygonGraphicOverlay.getGraphics().add(polygonGraphic); mMapView.getGraphicsOverlays().add(polygonGraphicOverlay); }