There are many occasions when you need to have multiple labels which all size themselves to their contents and also align with each other with no space.
The solution to this is to use MeasureMultiLineText within the StringUtils Library.
To make this easy to use I created a CustomView...
Calculate width of Charsequence Text
Uses Java Function measureText(charSequence , int Start, int End)
' textSize is default textsize of label where charsequence is displayed
Sub getWidthofCS(cx As Object,textSize As Float) As Float
Dim jo As JavaObject = Me
Based on code by Erel for StringUtils function MeasureMultilineTextHeight
StringUtils function calculates the height for multiplier value 1 only.
With this function you can calculate height with variable line spacing.