@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
MapView mapView = (MapView) findViewById(R.id.mapView);
ArcGISMap map = new ArcGISMap(Basemap.Type.DARK_GRAY_CANVAS_VECTOR, 0, 0, 4);
mapView.setMap(map);
SketchEditor sketchEditor = new SketchEditor();
mapView.setSketchEditor(sketchEditor);
sketchEditor.start(SketchCreationMode.FREEHAND_LINE);
}
This is a basic implementation. It may require additional configuration on your end to suit your needs.
Thank you very much
But I found sketch conflict with mapview's DefaultMapViewOnTouchListener
Yes, I noticed this too and believe this may be part of the design. I will have to speak with my team regarding this.
If you are okay with me asking, there may be another solution for what you are attempting to do. Is there something you were hoping to do with the touch listener?
I want to do a military plotting function