laptop and a wrench

漏洞

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.

上次发布: January 9, 2016 ArcGIS Runtime SDK
漏洞 ID 编号 BUG-000092723
已提交December 4, 2015
上次修改时间June 5, 2024
适用范围ArcGIS Runtime SDK
找到的版本10.2.6
操作系统Android
操作系统版本5.1x
状态Known Limit

附加信息

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.

解决办法

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);

重现步骤

漏洞 ID: BUG-000092723

软件:

  • ArcGIS Runtime SDK

当漏洞状态发生变化时获得通知

下载 Esri 支持应用程序

发现关于本主题的更多内容

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项