B4i Library [B4X] [XUI] ASLabel - CrossPlatform Label

This is a simple label view, in IOS roundings are removed when resizing or colors are not displayed properly. This can be fixed by placing a panel under the label, this view does the work for you.
Just set the properties you want in the designer like in a normal label.

Author: Alexander Stolte
Version: 1.02

  • ASLabel
    • Events:
      • Click
      • LongClick
    • Fields:
      • mBase As B4XView
      • Tag As Object
    • Functions:
      • Base_Resize (Width As Double, Height As Double) As String
      • Class_Globals As String
      • DesignerCreateView (Base As Object, Lbl As Label, Props As Map) As String
        Base type must be Object
      • getLabel As Label
        gets the native label
      • getxLabel As B4XView
        gets the native label as B4XView
      • Initialize (Callback As Object, EventName As String) As String
      • IsInitialized As Boolean
        Tests whether the object has been initialized.
    • Properties:
      • Label As Label [read only]
        gets the native label
      • xLabel As B4XView [read only]
        gets the native label as B4XView
Simulator Screen Shot - iPhone 12 Pro Max - 2021-05-14 at 21.20.30.png
  • 1.00
    • Release
  • 1.01
    • BugFix - ClickEvent is now working on B4A and B4J
  • 1.02
    • Add set and get Enabled - Disabled or Enabled the label click events
Have Fun :)


  • AS Label.zip
    9.4 KB · Views: 38
  • ASLabel.b4xlib
    1.1 KB · Views: 25
Last edited:


Licensed User
Longtime User
Thank you for providing the library.
I took a test.
Click event is not triggered.


  • AS Label Test.zip
    9.9 KB · Views: 5