Android Question label fit text

FrankDev

Active Member
Licensed User
Longtime User
hello,

I have a label in which I want to enter a string of any length
The text is ALWAYS only one line long (single line)
the label should automatically adjust the length.
Isn't there an automatic?
(autofit)

Is that all you can do?

Dim C As Canvas
C. Initialize (Activity)
Dim X As Int
X = C. MeasureStringWidth ("textwidth", default_font, 30)
Msgbox (x,"")

The font size is always fixed.
So I don't want a function that reduces the font size.

regards Frank
 

FrankDev

Active Member
Licensed User
Longtime User
Thank you for your feedback.
Yeah, I found that too. But I thought for a single-line
there should be an easier way?

vb / label
autosize
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…