Android Question B4A Ellipsize property

MarcoRome

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

Erel

Administrator
Staff member
Licensed 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
 
Top