Android Question AutoTextSizeLabel

dagodom

Member
Licensed User
Longtime User
Hello
maybe I'm missing out on a glass of water :-(
I'm trying to create a label with autosizelabel without using designer and upload a layout.

I tried
B4X:
Dim cv1 As AutoTextSizeLabel
Dim p1, p2 As Panel

p1.Initialize ("p1")
p2.AddView (p1,0dip, 100% y / 16,100% x, y 100%)

cv1.Initialize (p1, "cv1")
cv1.Text = "Hello World"
but I get the error
java.lang.RuntimeException: Object Should first be initialized (Label).
on this row
B4X:
mLbl.Text = value
Does anyone have an example from which I can take inspiration?

Thanks
 

dagodom

Member
Licensed User
Longtime User
Thank's, but how can resize AutoTextSizeLabel after load
i need to resize the panel ?
 
Upvote 0
Top