laptop and a wrench

Error

Constructing a MapView in the extensible markup langage (XML) using the blank activity template of Android Studio after the 1.4 update causes the map to jitter when panning and zooming.

Última publicación: January 9, 2016 ArcGIS Runtime SDK
Número de ID del error BUG-000092723
EnviadoDecember 4, 2015
Última modificaciónJune 5, 2024
Relacionado conArcGIS Runtime SDK
Versión encontrada10.2.6
Sistema operativoAndroid
Versión de sistema operativo5.1x
EstadoKnown Limit

Información adicional

The flicker has nothing to do with Android Studio and instead is a result of the `MapView` being contained in a `RelativeView` with a layout behavior defined as the following: `app:layout_behavior="@string/appbar_scrolling_view_behavior"` This means the relative layout actually scrolls on pan and causes the MapView to be re-positioned slightly on screen causing the black flickering. If users comment the line above in **content_main.xml** the application works as expected. This is a known issue.

Solución alternativa

1. Construct the MapView in Java instead of XMLMapView myMapView = new MapView(MainActivity.this,null,null);myMapView.addLayer(new ArcGISDynamicMapServiceLayer("<a href="http://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer" target="_blank">http://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer</a>")); setContentView(myMapView);- To construct the MapView in XML set the parameter of setContentView method in MainActivityJava to content_main instead of activity_main.setContentView(R.layout.content_main);

Pasos para reproducir

ID del error: BUG-000092723

Software:

  • ArcGIS Runtime SDK

Recibir notificaciones cuando cambie el estado de un error

Descargar la aplicación de soporte de Esri

Descubrir más sobre este tema

Obtener ayuda de expertos en ArcGIS

Contactar con el soporte técnico

Descargar la aplicación de soporte de Esri

Ir a opciones de descarga