Is it possible to add Multiline support for buttons (like there is for Labels)? Having "Adjust Font Size to Fit" would also be nice.
I have Buttons in B4A with long text and B4A nicely displays it on two lines. But in B4i the long text gets compressed to 'xxxx....yyyy" all on one line.
I see this code will do what I want but can't this functionality be added in Designer like it is for Labels with properties?
I have Buttons in B4A with long text and B4A nicely displays it on two lines. But in B4i the long text gets compressed to 'xxxx....yyyy" all on one line.
I see this code will do what I want but can't this functionality be added in Designer like it is for Labels with properties?
B4X:
Sub SetMultiline(b As Button)
Dim no As NativeObject = b
no.GetField("titleLabel").SetField("numberOfLines", 0)
no.GetField("titleLabel").SetField("textAlignment", 1)
End Sub
Last edited: