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.




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
Cookies are required to use this site. You must accept them to continue using the site. Learn more…