AnsweredAssumed Answered

Legend info display error with unique value

Question asked by nafotoisrael on Jan 11, 2020

 Hello, when trying to display a LegendInfo of a FeatureLayer we've come across a problem:

unique value

normally, this doesn't display the huge gap between the layer name to the symbology

 

this happens when we have a unique value in the layer

 

code for display:

inal LegendInfo legendInfo = mLegendInfoList.get(position);
holder.legendName.setText(legendInfo.getName().trim());

oddly enough, if we do not take the legendInfo.getName() the gap disappears

 

sincerely.

Outcomes