<?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 CompositeSymbol with TextSymbol in ArcGIS Runtime SDK for Android Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/compositesymbol-with-textsymbol/m-p/376178#M2512</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have recently created a CompositeSymbol that consist of a PictureMarkerSymbol, TextSymbol and a SimpleMarkerSymbol.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After adding the CompositeSymbol into the GraphicLayer, I realize that the TextSymbol within the added GraphicSymbol have actually lost the Font information.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is a portion of the code where the CompositeSymbol is created and the values tested: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #e4e4ff;"&gt;Graphic&lt;/SPAN&gt; graphic = CreateACompositeSymbol();&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;if &lt;/SPAN&gt;(graphic != &lt;SPAN style="color: #000080; font-weight: bold;"&gt;null&lt;/SPAN&gt;) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #000080; font-weight: bold;"&gt;int &lt;/SPAN&gt;graphicUID = &lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;graphicslayer&lt;/SPAN&gt;.addGraphic(graphic);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="background-color: #e4e4ff;"&gt;Graphic&lt;/SPAN&gt; graphicAdded = &lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;graphicslayer&lt;/SPAN&gt;.getGraphic(graphicUID);&lt;/P&gt;&lt;P&gt;&amp;nbsp; Symbol symbol = graphicAdded.getSymbol();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #000080; font-weight: bold;"&gt;if&lt;/SPAN&gt;(symbol &lt;SPAN style="color: #000080; font-weight: bold;"&gt;instanceof &lt;/SPAN&gt;CompositeSymbol){&lt;/P&gt;&lt;P&gt;&amp;nbsp; CompositeSymbol compositeSymbol = (CompositeSymbol) symbol;&lt;/P&gt;&lt;P&gt;&amp;nbsp; List&amp;lt;Symbol&amp;gt; listofSymbols = compositeSymbol.getSymbols();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #000080; font-weight: bold;"&gt;for&lt;/SPAN&gt;(Symbol innerSymbol : listofSymbols){&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #000080; font-weight: bold;"&gt;if&lt;/SPAN&gt;(innerSymbol &lt;SPAN style="color: #000080; font-weight: bold;"&gt;instanceof &lt;/SPAN&gt;TextSymbol){&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #000080; font-weight: bold;"&gt;float &lt;/SPAN&gt;size = ((TextSymbol) innerSymbol).getSize();&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you can create your own composite symbol then just place a breakpoint at the last line to see the difference in the Font value for the TextSymbol in the graphic and graphicAdded object. The text value is the same and the color in the Attributes map is correct though.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone confirm if they have the same problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for any help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 15 May 2015 09:48:22 GMT</pubDate>
    <dc:creator>steelissteelis</dc:creator>
    <dc:date>2015-05-15T09:48:22Z</dc:date>
    <item>
      <title>CompositeSymbol with TextSymbol</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/compositesymbol-with-textsymbol/m-p/376178#M2512</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have recently created a CompositeSymbol that consist of a PictureMarkerSymbol, TextSymbol and a SimpleMarkerSymbol.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After adding the CompositeSymbol into the GraphicLayer, I realize that the TextSymbol within the added GraphicSymbol have actually lost the Font information.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is a portion of the code where the CompositeSymbol is created and the values tested: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #e4e4ff;"&gt;Graphic&lt;/SPAN&gt; graphic = CreateACompositeSymbol();&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;if &lt;/SPAN&gt;(graphic != &lt;SPAN style="color: #000080; font-weight: bold;"&gt;null&lt;/SPAN&gt;) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #000080; font-weight: bold;"&gt;int &lt;/SPAN&gt;graphicUID = &lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;graphicslayer&lt;/SPAN&gt;.addGraphic(graphic);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="background-color: #e4e4ff;"&gt;Graphic&lt;/SPAN&gt; graphicAdded = &lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;graphicslayer&lt;/SPAN&gt;.getGraphic(graphicUID);&lt;/P&gt;&lt;P&gt;&amp;nbsp; Symbol symbol = graphicAdded.getSymbol();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #000080; font-weight: bold;"&gt;if&lt;/SPAN&gt;(symbol &lt;SPAN style="color: #000080; font-weight: bold;"&gt;instanceof &lt;/SPAN&gt;CompositeSymbol){&lt;/P&gt;&lt;P&gt;&amp;nbsp; CompositeSymbol compositeSymbol = (CompositeSymbol) symbol;&lt;/P&gt;&lt;P&gt;&amp;nbsp; List&amp;lt;Symbol&amp;gt; listofSymbols = compositeSymbol.getSymbols();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #000080; font-weight: bold;"&gt;for&lt;/SPAN&gt;(Symbol innerSymbol : listofSymbols){&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #000080; font-weight: bold;"&gt;if&lt;/SPAN&gt;(innerSymbol &lt;SPAN style="color: #000080; font-weight: bold;"&gt;instanceof &lt;/SPAN&gt;TextSymbol){&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #000080; font-weight: bold;"&gt;float &lt;/SPAN&gt;size = ((TextSymbol) innerSymbol).getSize();&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you can create your own composite symbol then just place a breakpoint at the last line to see the difference in the Font value for the TextSymbol in the graphic and graphicAdded object. The text value is the same and the color in the Attributes map is correct though.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone confirm if they have the same problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for any help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 May 2015 09:48:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/compositesymbol-with-textsymbol/m-p/376178#M2512</guid>
      <dc:creator>steelissteelis</dc:creator>
      <dc:date>2015-05-15T09:48:22Z</dc:date>
    </item>
    <item>
      <title>Re: CompositeSymbol with TextSymbol</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/compositesymbol-with-textsymbol/m-p/376179#M2513</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you say the symbol has lost its "Font" information, are you referring to the value returned from the getSize() method? If so, are you saying that this property is coming back as a different value from the value you originally set on this symbol before you added it to the graphics layer?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Will&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 May 2015 22:35:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/compositesymbol-with-textsymbol/m-p/376179#M2513</guid>
      <dc:creator>WillCrick</dc:creator>
      <dc:date>2015-05-15T22:35:31Z</dc:date>
    </item>
    <item>
      <title>Re: CompositeSymbol with TextSymbol</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/compositesymbol-with-textsymbol/m-p/376180#M2514</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Will and Everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is a sample value from debugging the TextSymbol. I have obttaiend the value from the List of Graphic in the MapView&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Font [family=null, size=8.0, style=normal]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that the Size was 18 prior to adding. After adding into the list then immediately obtaining the object using the Graphic UID, the value is now 8.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have verified the problem with my colleague who also encountered the same problem previously.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance for the help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 May 2015 03:34:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/compositesymbol-with-textsymbol/m-p/376180#M2514</guid>
      <dc:creator>steelissteelis</dc:creator>
      <dc:date>2015-05-20T03:34:06Z</dc:date>
    </item>
    <item>
      <title>Re: CompositeSymbol with TextSymbol</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/compositesymbol-with-textsymbol/m-p/376181#M2515</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Steelis,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you create a TextSymbol, the font properties as well as other properties are respected by the API. The value of font size is lost only when you get the symbol from the graphic that you derive from GraphicsLayer.getGraphic(s) . It is a bug in our API. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure what is your use case in the above code snippet. If you want to apply the same font properties to other TextSymbol, you can either retain a reference of the symbol or the graphic you create instead of using the ones that are derived from GraphicsLayer.getGraphic(s). If you want to change the font properties of a TextSymbol, create a new TextSymbol instead of changing the ones that are derived from GraphicsLayer.getGraphic(s).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Jun 2015 01:04:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/compositesymbol-with-textsymbol/m-p/376181#M2515</guid>
      <dc:creator>XuemingWu</dc:creator>
      <dc:date>2015-06-06T01:04:01Z</dc:date>
    </item>
    <item>
      <title>Re: CompositeSymbol with TextSymbol</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/compositesymbol-with-textsymbol/m-p/376182#M2516</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Xueming,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for the answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually I'm just verifying that it is a bug in the ArcGIS Android API and hopefully let the Developers in Esri be aware of it. I have workarounds in my use case for now but I thought it will be better in the future for that to be fixed in future releases. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Steelis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jun 2015 02:13:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/compositesymbol-with-textsymbol/m-p/376182#M2516</guid>
      <dc:creator>steelissteelis</dc:creator>
      <dc:date>2015-06-09T02:13:56Z</dc:date>
    </item>
    <item>
      <title>Re: CompositeSymbol with TextSymbol</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/compositesymbol-with-textsymbol/m-p/376183#M2517</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Steelis,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your update. An issue has been logged for this bug. It will be addressed in a future release.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Xueming&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jun 2015 17:39:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/compositesymbol-with-textsymbol/m-p/376183#M2517</guid>
      <dc:creator>XuemingWu</dc:creator>
      <dc:date>2015-06-10T17:39:17Z</dc:date>
    </item>
  </channel>
</rss>

