Android Question B4A Ellipsize property

MarcoRome

Expert
Licensed User
Longtime User
Hi Erel. Thank you for this new update ( fantastic work ad usual ).
Is possible add also marquee property in Ellipsize ?
Thank you
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
The MARQUEE option is not so simple to use.
You can set it with this code:
B4X:
Sub Activity_Create(FirstTime As Boolean)
   Activity.LoadLayout("1")
   Sleep(50)
   Label1.Ellipsize = "MARQUEE"
   Label2.Ellipsize = "MARQUEE"
   SetSelected(Label1)   
   SetSelected(Label2)   
End Sub

Sub SetSelected(lbl As Label)
   Dim jo As JavaObject = lbl
   jo.RunMethod("setSelected", Array(True))
End Sub
 
Upvote 0
Top