<?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: Callout being shown after zoom, even though I'm hiding it in ArcGIS Runtime SDK for Android Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/callout-being-shown-after-zoom-even-though-i-m/m-p/634714#M4379</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was trying a couple other things that I didn't expect to work and found something that almost works.&amp;nbsp; If I do a callout.animatedHide() in the postAction of the onZoomListener, it does hide the callout.&lt;/P&gt;&lt;P&gt;But, it still does the hide/show first.&amp;nbsp; So, do something to make the map zoom, it hides the callout, it zooms, it shows the callout, then the animatedhide hides the callout again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Definitely not optimal, but an improvement.&amp;nbsp; Still looking for a good workaround.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Keith&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 30 Apr 2015 05:25:57 GMT</pubDate>
    <dc:creator>KeithTurner</dc:creator>
    <dc:date>2015-04-30T05:25:57Z</dc:date>
    <item>
      <title>Callout being shown after zoom, even though I'm hiding it</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/callout-being-shown-after-zoom-even-though-i-m/m-p/634713#M4378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have an onzoomlistener that hides the callout and requests data for the new map extent (a graphiclayer being populated from json).&amp;nbsp; The issue is that the callout is re-appearing after the zoom animation stops.&amp;nbsp; There does seem to be a reference to this in the docs - they say something along the lines of during an animation the callout is hidden and shown again after the animation stops.&amp;nbsp; This appears to be a bug, as I am making a call to hide the callout, but it shows it again.&amp;nbsp; I want it to stay off after a zoom.&amp;nbsp; The graphic which the callout is associated with may no longer be there after a zoom.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Putting a callout.hide() in either the preAction and postAction of the onzoomlistener has no effect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to do this, or a workaround?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Keith&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Apr 2015 05:18:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/callout-being-shown-after-zoom-even-though-i-m/m-p/634713#M4378</guid>
      <dc:creator>KeithTurner</dc:creator>
      <dc:date>2015-04-30T05:18:13Z</dc:date>
    </item>
    <item>
      <title>Re: Callout being shown after zoom, even though I'm hiding it</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/callout-being-shown-after-zoom-even-though-i-m/m-p/634714#M4379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was trying a couple other things that I didn't expect to work and found something that almost works.&amp;nbsp; If I do a callout.animatedHide() in the postAction of the onZoomListener, it does hide the callout.&lt;/P&gt;&lt;P&gt;But, it still does the hide/show first.&amp;nbsp; So, do something to make the map zoom, it hides the callout, it zooms, it shows the callout, then the animatedhide hides the callout again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Definitely not optimal, but an improvement.&amp;nbsp; Still looking for a good workaround.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Keith&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Apr 2015 05:25:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/callout-being-shown-after-zoom-even-though-i-m/m-p/634714#M4379</guid>
      <dc:creator>KeithTurner</dc:creator>
      <dc:date>2015-04-30T05:25:57Z</dc:date>
    </item>
    <item>
      <title>Re: Callout being shown after zoom, even though I'm hiding it</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/callout-being-shown-after-zoom-even-though-i-m/m-p/634715#M4380</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Keith,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think the problem is that if you try and hide the callout within the zoom listener, it's too late - the MapView has already taken care of temporarily hiding the callout (to prevent flickering and make it easier to use gestures on the map without the callout in the way). Check the MapView.getCallout().isShowing() - it will be false already. You can get in earlier however by using the MapOnTouchListener:&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/android/api-reference/reference/com/esri/android/map/MapOnTouchListener.html" title="https://developers.arcgis.com/android/api-reference/reference/com/esri/android/map/MapOnTouchListener.html"&gt;MapOnTouchListener | ArcGIS Android 10.2.5 API&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try setting one of these on your MapView, and then in the generic onTouch event, try your call to hide the callout there, e.g. :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000; font-family: terminal, monaco; font-size: 13px; font-weight: bold;"&gt;// In onCreate or somewhere suitable:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal, monaco; font-size: 10pt;"&gt;MapTouchListener mMapTouchListener = &lt;SPAN style="color: #000080; font-weight: bold;"&gt;new &lt;/SPAN&gt;MapTouchListener(getApplicationContext(), &lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;map&lt;/SPAN&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal, monaco; font-size: 10pt;"&gt;&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;map&lt;/SPAN&gt;.setOnTouchListener(mMapTouchListener);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000; font-family: terminal, monaco; font-size: 13px; font-weight: bold;"&gt;// Define the touch listener class&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal, monaco; font-size: 10pt;"&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;class &lt;/SPAN&gt;MapTouchListener &lt;SPAN style="color: #000080; font-weight: bold;"&gt;extends &lt;/SPAN&gt;MapOnTouchListener {&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal, monaco; font-size: 10pt;"&gt;&amp;nbsp; &lt;SPAN style="color: #000080; font-weight: bold;"&gt;public &lt;/SPAN&gt;MapTouchListener(Context context, MapView view) {&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal, monaco; font-size: 10pt;"&gt;&amp;nbsp; &lt;SPAN style="color: #000080; font-weight: bold;"&gt;super&lt;/SPAN&gt;(context, view);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal, monaco; font-size: 10pt;"&gt;&amp;nbsp; }&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal, monaco; font-size: 10pt;"&gt;&amp;nbsp; &lt;SPAN style="color: #808000;"&gt;@Override&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808000;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;public boolean &lt;/SPAN&gt;onTouch(View v, MotionEvent event) {&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal, monaco; font-size: 10pt;"&gt;&amp;nbsp; Log.&lt;SPAN style="font-style: italic;"&gt;i&lt;/SPAN&gt;(&lt;SPAN style="color: #660e7a; font-weight: bold; font-style: italic;"&gt;TAG&lt;/SPAN&gt;, &lt;SPAN style="color: #008000; font-weight: bold;"&gt;"onTouch Before getCallout.hide: " &lt;/SPAN&gt;+ &lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;map&lt;/SPAN&gt;.getCallout().isShowing());&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal, monaco; font-size: 10pt;"&gt;&amp;nbsp; &lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;map&lt;/SPAN&gt;.getCallout().hide();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal, monaco; font-size: 10pt;"&gt;&amp;nbsp; Log.&lt;SPAN style="font-style: italic;"&gt;i&lt;/SPAN&gt;(&lt;SPAN style="color: #660e7a; font-weight: bold; font-style: italic;"&gt;TAG&lt;/SPAN&gt;, &lt;SPAN style="color: #008000; font-weight: bold;"&gt;"onTouch After getCallout.hide: " &lt;/SPAN&gt;+ &lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;map&lt;/SPAN&gt;.getCallout().isShowing());&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal, monaco; font-size: 10pt;"&gt;&amp;nbsp; &lt;SPAN style="color: #000080; font-weight: bold;"&gt;return super&lt;/SPAN&gt;.onTouch(v, event);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal, monaco; font-size: 10pt;"&gt;&amp;nbsp; }&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal, monaco; font-size: 10pt;"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should kick in before the zoom handling, so the callout will already be hidden before the MapView checks if it's shown to do the auto-hiding.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2015 10:37:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/callout-being-shown-after-zoom-even-though-i-m/m-p/634715#M4380</guid>
      <dc:creator>ShellyGill1</dc:creator>
      <dc:date>2015-05-05T10:37:29Z</dc:date>
    </item>
  </channel>
</rss>

