Android Question StringUtils.MeasureMultilineTextHeight - string read from long HEBREW text file

a n g l o

Active Member
Licensed User
Longtime User
here's an example containg 2 text files.
both files start with 11111 and end with 99999.

i use StringUtils.MeasureMultilineTextHeight to determine the height needed to display all the text.
reading the file in English - i can scroll and see both 11111 and 99999 (string length is 9923). works as expected.
reading the file in Hebrew - i can scroll but never reach the 99999 and more lines can't be scrolled at (string length is 6923).

am i missing something, or this method is not accurate for Hebrew ?

(please, don't tell me i can use a webview or a listview, etc . i know all that)

thank you
 

Attachments

  • scrollLabelText.rar
    10.2 KB · Views: 55
Solution
here's an example containg 2 text files.
both files start with 11111 and end with 99999.

i use StringUtils.MeasureMultilineTextHeight to determine the height needed to display all the text.
reading the file in English - i can scroll and see both 11111 and 99999 (string length is 9923). works as expected.
reading the file in Hebrew - i can scroll but never reach the 99999 and more lines can't be scrolled at (string length is 6923).

am i missing something, or this method is not accurate for Hebrew ?

(please, don't tell me i can use a webview or a listview, etc . i know all that)

thank you
ok, after posting found this and that makes it correct. thank you

a n g l o

Active Member
Licensed User
Longtime User
here's an example containg 2 text files.
both files start with 11111 and end with 99999.

i use StringUtils.MeasureMultilineTextHeight to determine the height needed to display all the text.
reading the file in English - i can scroll and see both 11111 and 99999 (string length is 9923). works as expected.
reading the file in Hebrew - i can scroll but never reach the 99999 and more lines can't be scrolled at (string length is 6923).

am i missing something, or this method is not accurate for Hebrew ?

(please, don't tell me i can use a webview or a listview, etc . i know all that)

thank you
ok, after posting found this and that makes it correct. thank you
 
Upvote 0
Solution
Top