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.

ASLabel
Author: Alexander Stolte
Version: 1.01

  • 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
Changelog
  • 1.00
    • Release
  • 1.01
    • BugFix - ClickEvent is now working on B4A and B4J
Have Fun :)
 

Attachments

  • AS Label.zip
    9.4 KB · Views: 14
  • ASLabel.b4xlib
    1.1 KB · Views: 4
Last edited:

dongsool

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

Attachments

  • AS Label Test.zip
    9.9 KB · Views: 2
Top