<?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 Legend info display error with unique value in ArcGIS Runtime SDK for Android Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/legend-info-display-error-with-unique-value/m-p/338168#M2209</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;nbsp;Hello,&amp;nbsp;when trying to display a&amp;nbsp;&lt;A href="https://developers.arcgis.com/android/latest/api-reference/reference/com/esri/arcgisruntime/layers/LegendInfo.html" rel="nofollow noopener noreferrer" target="_blank"&gt;LegendInfo&lt;/A&gt;&amp;nbsp;of a&amp;nbsp;&lt;A href="https://developers.arcgis.com/android/latest/api-reference/reference/com/esri/arcgisruntime/layers/FeatureLayer.html" rel="nofollow noopener noreferrer" target="_blank"&gt;FeatureLayer&lt;/A&gt;&amp;nbsp;we've come across a problem:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="unique value" class="jive-emoji image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/478074_edited.jpg" /&gt;&lt;/P&gt;&lt;P&gt;normally, this doesn't display the huge gap between the layer name to the symbology&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this happens&amp;nbsp;when we have a unique value in the layer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;code for display:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #cc7832;"&gt;inal &lt;/SPAN&gt;LegendInfo legendInfo = &lt;SPAN style="color: #9876aa;"&gt;mLegendInfoList&lt;/SPAN&gt;.get(position)&lt;SPAN style="color: #cc7832;"&gt;;
&lt;/SPAN&gt;holder.&lt;SPAN style="color: #9876aa;"&gt;legendName&lt;/SPAN&gt;.setText(legendInfo.getName().trim())&lt;SPAN style="color: #cc7832;"&gt;;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;oddly enough, if we do not take the legendInfo.getName() the gap disappears&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sincerely.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 16:00:46 GMT</pubDate>
    <dc:creator>nafotoisrael</dc:creator>
    <dc:date>2021-12-11T16:00:46Z</dc:date>
    <item>
      <title>Legend info display error with unique value</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/legend-info-display-error-with-unique-value/m-p/338168#M2209</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;nbsp;Hello,&amp;nbsp;when trying to display a&amp;nbsp;&lt;A href="https://developers.arcgis.com/android/latest/api-reference/reference/com/esri/arcgisruntime/layers/LegendInfo.html" rel="nofollow noopener noreferrer" target="_blank"&gt;LegendInfo&lt;/A&gt;&amp;nbsp;of a&amp;nbsp;&lt;A href="https://developers.arcgis.com/android/latest/api-reference/reference/com/esri/arcgisruntime/layers/FeatureLayer.html" rel="nofollow noopener noreferrer" target="_blank"&gt;FeatureLayer&lt;/A&gt;&amp;nbsp;we've come across a problem:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="unique value" class="jive-emoji image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/478074_edited.jpg" /&gt;&lt;/P&gt;&lt;P&gt;normally, this doesn't display the huge gap between the layer name to the symbology&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this happens&amp;nbsp;when we have a unique value in the layer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;code for display:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #cc7832;"&gt;inal &lt;/SPAN&gt;LegendInfo legendInfo = &lt;SPAN style="color: #9876aa;"&gt;mLegendInfoList&lt;/SPAN&gt;.get(position)&lt;SPAN style="color: #cc7832;"&gt;;
&lt;/SPAN&gt;holder.&lt;SPAN style="color: #9876aa;"&gt;legendName&lt;/SPAN&gt;.setText(legendInfo.getName().trim())&lt;SPAN style="color: #cc7832;"&gt;;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;oddly enough, if we do not take the legendInfo.getName() the gap disappears&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sincerely.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 16:00:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/legend-info-display-error-with-unique-value/m-p/338168#M2209</guid>
      <dc:creator>nafotoisrael</dc:creator>
      <dc:date>2021-12-11T16:00:46Z</dc:date>
    </item>
  </channel>
</rss>

