Text

Android SDK - How to get text on multiple lines

Hi,

I am entering text on a text widget on two different lines, but the result after transcribing is coming on one line.

How do I make sure that I get the data in two different lines.

For e.g.

I am writing the following on the editor

Welcome

Go Home

After conversion this is coming on one line

Welcome Go Home

How do I make the result come as 

Welcome

Go Home

Thanks,

Piyush


1 Comment

Dear Piyush,


thank you for your question.


Currently, we use an algorithm to determine the paragrah information: basically, if we consider line 1 and line 2 are into the same paragraph, no line break will be added in the exported result.


Based on this, if 2 lines are "full", then these are considered belonging to the same paragraph ; if each line is only made of one word, a line break is added.


See the following pictures that explain:

Splitted lines:


Paragraph:

Best regards,


Olivier

Login or Signup to post a comment