Android Question BBCodeview bug?

RB Smissaert

Well-Known Member
Licensed User
Longtime User
Have the following text for a BBCodeview:

B4X:
    BBCodeView1.Text = $"[TextSize=18][u][b][url]1)Introduction[/url][/b][/u]
    
[u][b][url]2)Login[/url]

[url]3)Menu[/url][/b][/u]


[b]Introduction


Login


Menu[/b]


[/TextSize]
"$

When this is shown first time all is fine, but when I scroll the BBCodeview the underlining has disappeared. This is with lazy loading turned on.
If lazy loading is turned off then all is fine and the underlining will remain.

RBS
 

RB Smissaert

Well-Known Member
Licensed User
Longtime User
Can you upload a small project with this?

You don't really need the outer u tag and it might be causing a problem. The url will be underlined automatically.
Attached a small demo project, showing the problem (with me at least).
Leaving off the underline tag makes the url's show with no underlining, even though Auto Underline URLs is
ticked in the designer.

RBS
 

Attachments

  • BCTextExample2.zip
    10.3 KB · Views: 65
Upvote 0

RB Smissaert

Well-Known Member
Licensed User
Longtime User
You need to disable auto underline feature. It is mainly a desktop feature where the link shows without an underline and the line only appears while the mouse is over the link. Once the mouse moves the line is removed.
Thanks, turning off auto underline URLs solves the problem. Lazy loading can be turned on.

RBS
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…