Android Question Left Right multiline

Farzam

Member
Hello friends.
I have a poem text that is multi-line and separated by an enter.
How can I move the first line to the left and the next line to the right, like this all the way down?
 
You can convert the poem to html string and then load it into the webview
 
Upvote 0
Upvote 0
B4X:
    Label1.As(B4XView).SetTextAlignment("TOP","LEFT")
    Private cs As CSBuilder     'recommended: global - initialize multiple times, once per per label

    cs.initialize
    cs.alignment("ALIGN_NORMAL").Color(Colors.Red).Append("Hello World!").Append(CRLF)     'line break
    cs.alignment("ALIGN_OPPOSITE").Color(Colors.Red).Append("Hello World!").PopAll                 'use at very end of all lines - required to show changes
    Label1.Text = cs
 
Upvote 0
Back
Top