<?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: How to keep the callout sticky when users move map? in ArcGIS Runtime SDK for Android Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/how-to-keep-the-callout-sticky-when-users-move-map/m-p/1259686#M5980</link>
    <description>&lt;P&gt;Thank you &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/476225"&gt;@Shubham_Sharma&lt;/a&gt; .&lt;/P&gt;&lt;P&gt;Actually, I tried "TextSymbol" solution too. However, in this solution, I met another &lt;A href="https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/how-to-set-a-round-corner-for-text-symbol-style/td-p/1249809/jump-to/first-unread-message" target="_self"&gt;problem&lt;/A&gt;. I'm not sure if there is a solution which can solve both of the problems.&lt;/P&gt;&lt;P&gt;Bests,&lt;BR /&gt;Leo&lt;/P&gt;</description>
    <pubDate>Sun, 19 Feb 2023 01:21:41 GMT</pubDate>
    <dc:creator>LeoDeng</dc:creator>
    <dc:date>2023-02-19T01:21:41Z</dc:date>
    <item>
      <title>How to keep the callout sticky when users move map?</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/how-to-keep-the-callout-sticky-when-users-move-map/m-p/1249813#M5952</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; The SDK version is&amp;nbsp; &lt;A href="https://developers.arcgis.com/android/api-reference/reference/index.html" target="_self"&gt;100.15.0&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; I create a point graphic with callout on the mapview. When panning the map, the callout always has a gap between the arrow and the graphic. Is there any way to solve this issue in Android SDK ?&lt;/P&gt;&lt;P&gt;&amp;nbsp; Here is the code for create a callout with a point graphic.&lt;/P&gt;&lt;LI-CODE lang="java"&gt;Callout callout = _mapView.getCallout();
callout.setPassTouchEventsToMapView(false);

TextView calloutContent = new TextView(_context);
calloutContent.setTextColor(Color.BLACK);
calloutContent.setSingleLine();
// format coordinates to 4 decimal places
calloutContent.setText("Lat: " + String.format("%.4f", location.getY()) + ", Lon: " + String.format("%.4f", location.getX()));
callout.show(calloutContent, location);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp; Please see the attached video for details.&lt;BR /&gt;&lt;div class="lia-vid-container video-embed-center"&gt;&lt;div id="lia-vid-6318948285112w432h540r994" class="lia-video-brightcove-player-container"&gt;&lt;video-js data-video-id="6318948285112" data-account="6161463677001" data-player="default" data-embed="default" class="vjs-fluid" controls="" data-application-id="" style="width: 100%; height: 100%;"&gt;&lt;/video-js&gt;&lt;/div&gt;&lt;script src="https://players.brightcove.net/6161463677001/default_default/index.min.js"&gt;&lt;/script&gt;&lt;script&gt;(function() {  var wrapper = document.getElementById('lia-vid-6318948285112w432h540r994');  var videoEl = wrapper ? wrapper.querySelector('video-js') : null;  if (videoEl) {     if (window.videojs) {       window.videojs(videoEl).ready(function() {         this.on('loadedmetadata', function() {           this.el().querySelectorAll('.vjs-load-progress div[data-start]').forEach(function(bar) {             bar.setAttribute('role', 'presentation');             bar.setAttribute('aria-hidden', 'true');           });         });       });     }  }})();&lt;/script&gt;&lt;a class="video-embed-link" href="https://community.esri.com/t5/video/gallerypage/video-id/6318948285112"&gt;(view in My Videos)&lt;/a&gt;&lt;/div&gt;&lt;BR /&gt;Bests,&lt;BR /&gt;Leo&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jan 2023 06:56:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/how-to-keep-the-callout-sticky-when-users-move-map/m-p/1249813#M5952</guid>
      <dc:creator>LeoDeng</dc:creator>
      <dc:date>2023-01-20T06:56:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to keep the callout sticky when users move map?</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/how-to-keep-the-callout-sticky-when-users-move-map/m-p/1257705#M5969</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/267470"&gt;@LeoDeng&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using a callout probably wouldn't best choice for "perfect stickiness". I would recommend using a `TextSymbol`&lt;/P&gt;&lt;LI-CODE lang="kotlin"&gt;graphicsOverlay?.graphics?.add(
    Graphic(
        Point(40.0, -90.0, SpatialReferences.getWgs84()),
        getTextSymbol("Lat: 40.0, Lon: -90.0")
    )
)
        
private fun getTextSymbol(text: String): TextSymbol {
    val textSymbol = TextSymbol(
        10F,
        text,
        Color.BLACK,
        TextSymbol.HorizontalAlignment.CENTER,
        TextSymbol.VerticalAlignment.MIDDLE
    )
    // give the text symbol a white background
    textSymbol.backgroundColor = Color.WHITE
    return textSymbol
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Check out the &lt;A href="https://developers.arcgis.com/android/kotlin/sample-code/render-multilayer-symbols/" target="_blank" rel="noopener"&gt;Render multilayer symbols&lt;/A&gt; Android Runtime sample, which shows&lt;SPAN&gt;&amp;nbsp;different kinds of multilayer symbols on a map including rendering TextSymbols&lt;/SPAN&gt;.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Feb 2023 20:54:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/how-to-keep-the-callout-sticky-when-users-move-map/m-p/1257705#M5969</guid>
      <dc:creator>Shubham_Sharma</dc:creator>
      <dc:date>2023-02-13T20:54:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to keep the callout sticky when users move map?</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/how-to-keep-the-callout-sticky-when-users-move-map/m-p/1259686#M5980</link>
      <description>&lt;P&gt;Thank you &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/476225"&gt;@Shubham_Sharma&lt;/a&gt; .&lt;/P&gt;&lt;P&gt;Actually, I tried "TextSymbol" solution too. However, in this solution, I met another &lt;A href="https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/how-to-set-a-round-corner-for-text-symbol-style/td-p/1249809/jump-to/first-unread-message" target="_self"&gt;problem&lt;/A&gt;. I'm not sure if there is a solution which can solve both of the problems.&lt;/P&gt;&lt;P&gt;Bests,&lt;BR /&gt;Leo&lt;/P&gt;</description>
      <pubDate>Sun, 19 Feb 2023 01:21:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/how-to-keep-the-callout-sticky-when-users-move-map/m-p/1259686#M5980</guid>
      <dc:creator>LeoDeng</dc:creator>
      <dc:date>2023-02-19T01:21:41Z</dc:date>
    </item>
  </channel>
</rss>

