<?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 Re: mapView.PointerMoved functionality (similar to .NET api)? in ArcGIS Runtime SDK for Android Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/mapview-pointermoved-functionality-similar-to-net/m-p/4691#M42</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually figured it out.&amp;nbsp; setOnHoverListener() did the trick:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;mapView.setOnHoverListener(&lt;SPAN style="color: #000080; font-weight: bold;"&gt;object&lt;/SPAN&gt;:View.OnHoverListener {
    &lt;SPAN style="color: #000080; font-weight: bold;"&gt;override fun &lt;/SPAN&gt;onHover(v:View, event:MotionEvent):Boolean {

        &lt;SPAN style="color: #000080; font-weight: bold;"&gt;val &lt;/SPAN&gt;screenPoint = android.graphics.Point(
            Math.round(event!!.&lt;SPAN style="color: #660e7a; font-style: italic;"&gt;x&lt;/SPAN&gt;),
            Math.round(event!!.&lt;SPAN style="color: #660e7a; font-style: italic;"&gt;y&lt;/SPAN&gt;)
        )

        &lt;SPAN style="color: #000080; font-weight: bold;"&gt;val &lt;/SPAN&gt;mapPoint = mapView.screenToLocation(screenPoint)
        &lt;SPAN style="color: #000080; font-weight: bold;"&gt;when &lt;/SPAN&gt;(event.getAction()) {
            MotionEvent.&lt;SPAN style="color: #660e7a; font-style: italic;"&gt;ACTION_HOVER_ENTER &lt;/SPAN&gt;-&amp;gt; hover_text.&lt;SPAN style="color: #660e7a; font-style: italic;"&gt;text &lt;/SPAN&gt;=&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"entered the map at (x: &lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;${&lt;/SPAN&gt;mapPoint.&lt;SPAN style="color: #660e7a; font-style: italic;"&gt;x&lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-weight: bold;"&gt;, y: &lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;${&lt;/SPAN&gt;mapPoint.&lt;SPAN style="color: #660e7a; font-style: italic;"&gt;y&lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-weight: bold;"&gt;)"
&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-weight: bold;"&gt;            &lt;/SPAN&gt;MotionEvent.&lt;SPAN style="color: #660e7a; font-style: italic;"&gt;ACTION_HOVER_MOVE &lt;/SPAN&gt;-&amp;gt;  hover_text.&lt;SPAN style="color: #660e7a; font-style: italic;"&gt;text &lt;/SPAN&gt;= &lt;SPAN style="color: #008000; font-weight: bold;"&gt;"currently hovering on (x: &lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;${&lt;/SPAN&gt;mapPoint.&lt;SPAN style="color: #660e7a; font-style: italic;"&gt;x&lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-weight: bold;"&gt;, y: &lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;${&lt;/SPAN&gt;mapPoint.&lt;SPAN style="color: #660e7a; font-style: italic;"&gt;y&lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-weight: bold;"&gt;)"
&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-weight: bold;"&gt;            &lt;/SPAN&gt;MotionEvent.&lt;SPAN style="color: #660e7a; font-style: italic;"&gt;ACTION_HOVER_EXIT &lt;/SPAN&gt;-&amp;gt;  hover_text.&lt;SPAN style="color: #660e7a; font-style: italic;"&gt;text &lt;/SPAN&gt;=&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"no longer hovering, left the map at (x: &lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;${&lt;/SPAN&gt;mapPoint.&lt;SPAN style="color: #660e7a; font-style: italic;"&gt;x&lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-weight: bold;"&gt;, y: &lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;${&lt;/SPAN&gt;mapPoint.&lt;SPAN style="color: #660e7a; font-style: italic;"&gt;y&lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-weight: bold;"&gt;))"
&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-weight: bold;"&gt;        &lt;/SPAN&gt;}
        &lt;SPAN style="color: #000080; font-weight: bold;"&gt;return false
&lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;    &lt;/SPAN&gt;}
})&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Dec 2021 20:11:11 GMT</pubDate>
    <dc:creator>WesBailes</dc:creator>
    <dc:date>2021-12-10T20:11:11Z</dc:date>
    <item>
      <title>mapView.PointerMoved functionality (similar to .NET api)?</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/mapview-pointermoved-functionality-similar-to-net/m-p/4686#M37</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I use the pointermoved functionality in a .NET app and was wondering if something similar is available for Android? I have an android device that has a smart stylus and would like to handle the movements (pointer over) above the map if at all possible.&amp;nbsp; I haven't done extensive research as of yet, but curious as to if anyone had some info.&amp;nbsp; thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Sep 2019 12:17:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/mapview-pointermoved-functionality-similar-to-net/m-p/4686#M37</guid>
      <dc:creator>WesBailes</dc:creator>
      <dc:date>2019-09-26T12:17:24Z</dc:date>
    </item>
    <item>
      <title>Re: mapView.PointerMoved functionality (similar to .NET api)?</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/mapview-pointermoved-functionality-similar-to-net/m-p/4687#M38</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, but before I answer the question can you confirm which SDK you are using.&amp;nbsp; Are you using Android as with Android Studio, or writing a Xamarin cross platform app with Visual Studio?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Sep 2019 14:43:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/mapview-pointermoved-functionality-similar-to-net/m-p/4687#M38</guid>
      <dc:creator>MarkBaird</dc:creator>
      <dc:date>2019-09-26T14:43:47Z</dc:date>
    </item>
    <item>
      <title>Re: mapView.PointerMoved functionality (similar to .NET api)?</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/mapview-pointermoved-functionality-similar-to-net/m-p/4688#M39</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mark, thanks for the reply! &amp;nbsp;Yes using ArcGIS Runtime for Android (100.6) with Android Studio 3.5. &amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Sep 2019 14:53:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/mapview-pointermoved-functionality-similar-to-net/m-p/4688#M39</guid>
      <dc:creator>WesBailes</dc:creator>
      <dc:date>2019-09-26T14:53:42Z</dc:date>
    </item>
    <item>
      <title>Re: mapView.PointerMoved functionality (similar to .NET api)?</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/mapview-pointermoved-functionality-similar-to-net/m-p/4689#M40</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So the PointerMoved method you've seen is probably a specific method for working with WPF controls.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As a start I'd take a look at this sample to see some basics of interacting with MapViews in Android controls:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/android/latest/java/sample-code/feature-layer-selection/" title="https://developers.arcgis.com/android/latest/java/sample-code/feature-layer-selection/"&gt;Feature Layer Selection | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It shows you how you can implement a touch listener.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Sep 2019 15:21:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/mapview-pointermoved-functionality-similar-to-net/m-p/4689#M40</guid>
      <dc:creator>MarkBaird</dc:creator>
      <dc:date>2019-09-26T15:21:33Z</dc:date>
    </item>
    <item>
      <title>Re: mapView.PointerMoved functionality (similar to .NET api)?</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/mapview-pointermoved-functionality-similar-to-net/m-p/4690#M41</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks! &amp;nbsp;I may check into the setCapturePointerListener method to see what it does.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Sep 2019 18:04:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/mapview-pointermoved-functionality-similar-to-net/m-p/4690#M41</guid>
      <dc:creator>WesBailes</dc:creator>
      <dc:date>2019-09-26T18:04:34Z</dc:date>
    </item>
    <item>
      <title>Re: mapView.PointerMoved functionality (similar to .NET api)?</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/mapview-pointermoved-functionality-similar-to-net/m-p/4691#M42</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually figured it out.&amp;nbsp; setOnHoverListener() did the trick:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;mapView.setOnHoverListener(&lt;SPAN style="color: #000080; font-weight: bold;"&gt;object&lt;/SPAN&gt;:View.OnHoverListener {
    &lt;SPAN style="color: #000080; font-weight: bold;"&gt;override fun &lt;/SPAN&gt;onHover(v:View, event:MotionEvent):Boolean {

        &lt;SPAN style="color: #000080; font-weight: bold;"&gt;val &lt;/SPAN&gt;screenPoint = android.graphics.Point(
            Math.round(event!!.&lt;SPAN style="color: #660e7a; font-style: italic;"&gt;x&lt;/SPAN&gt;),
            Math.round(event!!.&lt;SPAN style="color: #660e7a; font-style: italic;"&gt;y&lt;/SPAN&gt;)
        )

        &lt;SPAN style="color: #000080; font-weight: bold;"&gt;val &lt;/SPAN&gt;mapPoint = mapView.screenToLocation(screenPoint)
        &lt;SPAN style="color: #000080; font-weight: bold;"&gt;when &lt;/SPAN&gt;(event.getAction()) {
            MotionEvent.&lt;SPAN style="color: #660e7a; font-style: italic;"&gt;ACTION_HOVER_ENTER &lt;/SPAN&gt;-&amp;gt; hover_text.&lt;SPAN style="color: #660e7a; font-style: italic;"&gt;text &lt;/SPAN&gt;=&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"entered the map at (x: &lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;${&lt;/SPAN&gt;mapPoint.&lt;SPAN style="color: #660e7a; font-style: italic;"&gt;x&lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-weight: bold;"&gt;, y: &lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;${&lt;/SPAN&gt;mapPoint.&lt;SPAN style="color: #660e7a; font-style: italic;"&gt;y&lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-weight: bold;"&gt;)"
&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-weight: bold;"&gt;            &lt;/SPAN&gt;MotionEvent.&lt;SPAN style="color: #660e7a; font-style: italic;"&gt;ACTION_HOVER_MOVE &lt;/SPAN&gt;-&amp;gt;  hover_text.&lt;SPAN style="color: #660e7a; font-style: italic;"&gt;text &lt;/SPAN&gt;= &lt;SPAN style="color: #008000; font-weight: bold;"&gt;"currently hovering on (x: &lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;${&lt;/SPAN&gt;mapPoint.&lt;SPAN style="color: #660e7a; font-style: italic;"&gt;x&lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-weight: bold;"&gt;, y: &lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;${&lt;/SPAN&gt;mapPoint.&lt;SPAN style="color: #660e7a; font-style: italic;"&gt;y&lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-weight: bold;"&gt;)"
&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-weight: bold;"&gt;            &lt;/SPAN&gt;MotionEvent.&lt;SPAN style="color: #660e7a; font-style: italic;"&gt;ACTION_HOVER_EXIT &lt;/SPAN&gt;-&amp;gt;  hover_text.&lt;SPAN style="color: #660e7a; font-style: italic;"&gt;text &lt;/SPAN&gt;=&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"no longer hovering, left the map at (x: &lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;${&lt;/SPAN&gt;mapPoint.&lt;SPAN style="color: #660e7a; font-style: italic;"&gt;x&lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-weight: bold;"&gt;, y: &lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;${&lt;/SPAN&gt;mapPoint.&lt;SPAN style="color: #660e7a; font-style: italic;"&gt;y&lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-weight: bold;"&gt;))"
&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-weight: bold;"&gt;        &lt;/SPAN&gt;}
        &lt;SPAN style="color: #000080; font-weight: bold;"&gt;return false
&lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;    &lt;/SPAN&gt;}
})&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 20:11:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/mapview-pointermoved-functionality-similar-to-net/m-p/4691#M42</guid>
      <dc:creator>WesBailes</dc:creator>
      <dc:date>2021-12-10T20:11:11Z</dc:date>
    </item>
  </channel>
</rss>

