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.30
Methods:
Properties:
--------------
Vesion 1.1
added Tag property
Vesion 1.11
fixed error when Background is not ColorDrawable or not set
Vesion 1.20
added PreferHight property
Vesion 1.30
added MaxSize property
Vesion 1.31
fixed error when read new addded property
Now it takes into account both borders and padingns. It is packaged in the b4xlib library.
MaxLabel
Author: Jerryk
Version: 1.30
Methods:
- Text As String
- Base As Label
Properties:
- PreferHeight As Boolean
- MaxSize As Int
- SingleLine As Boolean
--------------
Vesion 1.1
added Tag property
Vesion 1.11
fixed error when Background is not ColorDrawable or not set
Vesion 1.20
added PreferHight property
Vesion 1.30
added MaxSize property
Vesion 1.31
fixed error when read new addded property
Attachments
Last edited: