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
    65 KB · Views: 55
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

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
    81.3 KB · Views: 51
  • sshot-115.png
    82.6 KB · Views: 62
  • RTL_OFF.png
    50 KB · Views: 60
  • RTL_ON.png
    49.8 KB · Views: 55
  • sshot-117.png
    80.8 KB · Views: 53
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…