<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Drag and Drop onDragPointerMove Stops Map Scrolling in ArcGIS Runtime SDK for Android Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/drag-and-drop-ondragpointermove-stops-map/m-p/487162#M3355</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello, I am trying to drag an image/graphic from its location to another location. I have added the onDragPointerMove method to my touch listener, but when I run the app I can no longer scroll around the map, it is constantly detecting a drag pointer. So when trying to scroll/move the map to a new location, it does not move correctly. I have tried returning false expecting it to skip the method, but it reacts the same way. Any help or suggestions are greatly appreciated. Below is the code I am using:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; public boolean onDragPointerMove(MotionEvent from, MotionEvent to) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; //Checks to see if the drag is occuring on a graphic&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; int[] ids = graphicsLayer.getGraphicIDs(from.getX(), from.getY(), 25);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; if (ids != null &amp;amp;&amp;amp; ids.length &amp;gt; 0) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return true;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; return false;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; }//end of onDragPointerMove&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 Jan 2013 18:03:21 GMT</pubDate>
    <dc:creator>GSauers</dc:creator>
    <dc:date>2013-01-21T18:03:21Z</dc:date>
    <item>
      <title>Drag and Drop onDragPointerMove Stops Map Scrolling</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/drag-and-drop-ondragpointermove-stops-map/m-p/487162#M3355</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello, I am trying to drag an image/graphic from its location to another location. I have added the onDragPointerMove method to my touch listener, but when I run the app I can no longer scroll around the map, it is constantly detecting a drag pointer. So when trying to scroll/move the map to a new location, it does not move correctly. I have tried returning false expecting it to skip the method, but it reacts the same way. Any help or suggestions are greatly appreciated. Below is the code I am using:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; public boolean onDragPointerMove(MotionEvent from, MotionEvent to) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; //Checks to see if the drag is occuring on a graphic&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; int[] ids = graphicsLayer.getGraphicIDs(from.getX(), from.getY(), 25);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; if (ids != null &amp;amp;&amp;amp; ids.length &amp;gt; 0) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return true;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; return false;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; }//end of onDragPointerMove&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jan 2013 18:03:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/drag-and-drop-ondragpointermove-stops-map/m-p/487162#M3355</guid>
      <dc:creator>GSauers</dc:creator>
      <dc:date>2013-01-21T18:03:21Z</dc:date>
    </item>
    <item>
      <title>Re: Drag and Drop onDragPointerMove Stops Map Scrolling</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/drag-and-drop-ondragpointermove-stops-map/m-p/487163#M3356</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Solved the issue I was having. You need to return the parent activity before the end of onDragPointerMove. Hope this helps others in the future.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;return super.onDragPointerMove(from, to);&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jan 2013 19:45:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/drag-and-drop-ondragpointermove-stops-map/m-p/487163#M3356</guid>
      <dc:creator>GSauers</dc:creator>
      <dc:date>2013-01-24T19:45:04Z</dc:date>
    </item>
  </channel>
</rss>

