Skip to content

Latest commit

 

History

History
 
 

display-drawing-status

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

Display Drawing Status

Display Drawing Status App

The Display Drawing Status app shows how to use the DrawStatus value representing drawing state of the MapView to display an Android ProgressBar while the map is loading.

Features

  • ArcGISMap
  • MapView
  • ServiceFeatureTable
  • DrawStatus
  • DrawStatusChangedEvent
  • DrawStatusChangedListener

Developer Pattern

The listener interface for receiving DrawStatus changed events from the MapView:

mMapView.addDrawStatusChangedListener(new DrawStatusChangedListener() {
    @Override
    public void drawStatusChanged(DrawStatusChangedEvent drawStatusChangedEvent) {
        if(drawStatusChangedEvent.getDrawStatus() == DrawStatus.IN_PROGRESS){
            progressBar.setVisibility(View.VISIBLE);
            Log.d("drawStatusChanged", "spinner visible");
        }else if (drawStatusChangedEvent.getDrawStatus() == DrawStatus.COMPLETED){
            progressBar.setVisibility(View.INVISIBLE);
        }
    }
});