Android Question B4A Ellipsize property

Discussion in 'Android Questions' started by MarcoRome, Aug 11, 2017.

  1. MarcoRome

    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
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    The MARQUEE option is not so simple to use.
    You can set it with this code:
    Code:
    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
     
    Peter Simpson and MarcoRome like this.
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice