Numéro d’ID de bogue |
BUG-000092723 |
Envoi | December 4, 2015 |
Dernière modification | June 5, 2024 |
S’applique à | ArcGIS Runtime SDK |
Version trouvée | 10.2.6 |
Système d’exploitation | Android |
Version du système d’exploitation | 5.1x |
Statut | Known Limit
Après examen par l’équipe de développement, il a été déterminé que ce problème est lié à une limitation connue du logiciel sur laquelle Esri n’a aucun contrôle. Pour d’autres explications, reportez-vous à la section Informations supplémentaires correspondant au problème.
|
Informations supplémentaires
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.
Solution de contournement
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);
Étapes pour reproduire
ID de bogue: BUG-000092723
Logiciel: