B4A Library MaxLabel

I have modified a custom view AutoTextSizeLabel where the font size is maximized either in height or width.
Now it takes into account both borders and padingns. It is packaged in the b4xlib library.


Screenshot_2024.11.22_16.55.42.565.png


MaxLabel
Author: Jerryk
Version: 1.0

Methods:

  • Text As String
Sets or gets text of Label.
  • Base As Label
All Label methods are available through Base (e.g. Maxlabel.Base.TextColor, Maxlabel.Base.Top, etc.)

Properties:
  • SingleLine As Boolean
When using the SingleLine property, use "overwritten". This is because it needs to be read for calculations, but in the original it is writeonly.
 

Attachments

  • MaxLabel.b4xlib
    1.3 KB · Views: 10
  • MaxLabel.zip
    10.4 KB · Views: 10
Top