Android Question How to tidy up sentences in bblistitem?

PumaCyan

Member
Licensed User
how do you tidy up a long sentence below, so that the position on the left is even and parallel?
I use CLV and BBListitem

here is my code snippet:
BB.Text = _
$""$ & CRLF & _
$"[Alignment=Left][TextSize=12][b]${cd.username & "  -  "}[/b][/TextSize][/Alignment]"$ & _
$"[TextSize=10]${cd.date}[/TextSize]"$ & CRLF & _
$"[Alignment=Left][TextSize=12]${cd.comment}[/TextSize][/Alignment]"$

i already used the alignment function, but its the same
 

Attachments

  • Screenshot_20230210-140127.png
    Screenshot_20230210-140127.png
    65 KB · Views: 102
Solution
First step is to learn how to use smart strings literal:
B4X:
$"
[Alignment=Left][TextSize=12][b]${cd.username}  -  [/b][/TextSize]
[TextSize=10]${cd.date}[/TextSize]
[TextSize=12]${cd.comment}[/TextSize][/Alignment]"$

PumaCyan

Member
Licensed User
First step is to learn how to use smart strings literal:
B4X:
$"
[Alignment=Left][TextSize=12][b]${cd.username}  -  [/b][/TextSize]
[TextSize=10]${cd.date}[/TextSize]
[TextSize=12]${cd.comment}[/TextSize][/Alignment]"$

this is my mistake..
i missed the feature of smart string
thank you erel

but I have another problem regarding this

1. If the BB.RTL function = True, does it affect the sentence format to be messy?

2. Some of my code lines are indented for easy reading, but does this affect the smart string function? the attached image
 

Attachments

  • sshot-116.png
    sshot-116.png
    81.3 KB · Views: 97
  • sshot-115.png
    sshot-115.png
    82.6 KB · Views: 103
  • RTL_OFF.png
    RTL_OFF.png
    50 KB · Views: 112
  • RTL_ON.png
    RTL_ON.png
    49.8 KB · Views: 102
  • sshot-117.png
    sshot-117.png
    80.8 KB · Views: 97
Upvote 0
Top