Android Question Half of CRLF

shashkiranr

Active Member
Licensed User
Longtime User
Hi All,

I Know CRLF corresponds to Chr(10) new line height. I want the height to be reduced by half. Is there any way it can be done? Kindly let me know.

Best,
SK
 

shashkiranr

Active Member
Licensed User
Longtime User
Sorry for posting in wrong thread.

I found another way to get it working.

B4X:
Dim jo = TitleLabel As JavaObject
    Dim f1,f2 As Float
    f1 = 1
    f2 = 1.5
    jo.RunMethod("setLineSpacing", Array As Object(f1,f2))

So if the title lable text has a CRLF then it will be more than single line height.

Best,
SK
 
Upvote 0

shashkiranr

Active Member
Licensed User
Longtime User
Hi Erel,

MeasureMultilineTextHeight is not working properly after using the above setLineSpacing on a label. Any Idea how to overcome it

Best,
SK
 
Upvote 0
Top