Other Multiline text not always working?

Discussion in 'Android Questions' started by udg, Feb 21, 2015.

  1. udg

    udg Expert Licensed User

    Is it me in a crying need for some coffe or does labels multiline text not always work?

    Please find attached a .bal file I am experimenting with.
    It is intended to be loaded as a CLV's item; I generally make those items by code but today I wanted to experiment a bit.

    What surprised me is that, although it has plenty of space, Label2 doesn't wrap on last three devices showed on UI Cloud (Samsung I900 4", Samsung Pocket 2.8" and Kindle Fire).
    Why?

    TIA
     

    Attached Files:

  2. Erel

    Erel Administrator Staff Member Licensed User

    Not sure why it doesn't wrap on these devices.
    You can try to force the label to be two lines with this code:
    Code:
    Dim jo As JavaObject = Label1
    jo.RunMethod(
    "setLines"Array(2))
     
  3. udg

    udg Expert Licensed User

    Another test example. This one is even simpler: just a label covering the whole activity.
    But again no word-wrap.

    Edit: thank you Erel, I'll try and report back.
     

    Attached Files:

  4. rag1out

    rag1out New Member Licensed User

    I have the same problem. Please could you tell us if there has been any progess on this?
     
  5. Erel

    Erel Administrator Staff Member Licensed User

    Have you tried to explicitly set the number of lines?
     
  6. rag1out

    rag1out New Member Licensed User

    Like UDG I am testing on UI Cloud.
    I have set the number of lines in code but only get one line on those UI Cloud devices mentioned by UDG.
    I guess UI Cloud is just looking at the Layout so cannot know about the code.
    Maybe there is no way of knowing if setting the number of lines in code works without running on a physical device.
     
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