Android Question special formatting of the decimal (4 4.5 5 5.5 etc)

MbedAndroid

Well-Known Member
Licensed User
Longtime User
this kind of notation: decimal is shifted a bit lower, and only can contain nr 5
so 4 4.5 5 5.5 etc
All other cases the decimal is surpressed
1620885065027.png

Decimal's size a bit smaller.
The only way i see to construct it with 2 labels.
Finally i will make bitmap from it to paint in on google maps with CreateBitmap

Or anyone has a better idea?
thnx in advance
 

MbedAndroid

Well-Known Member
Licensed User
Longtime User
bblabel did the job, but i changed it to csbuilder.
If anyone needs something like this:
B4X:
label1.text=cs.Initialize.Alignment("ALIGN_CENTER").Append(number).VerticalAlign(5dip).size(9).Append(decimal).PopAll
 
Upvote 0
Top