Android Question BBCodeView / link Color

FrankDev

Active Member
Licensed User
Longtime User
Hello

i have one (well 2 questions :) ) about the BBCodeView.
Can I change the link color (URL) or is it always blue ?
Unfortunately my background is blue too.

Is it possible to use a different font ? For example Arial or impact ?

Best regards and

Overeat all healthy !
(I hope the translator does a good job :) )
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
Of course * 2

URL color:
B4X:
BBCodeView1.Text = $"[url][color=red]test[/color][/url] "$
Or change default color:
B4X:
TextEngine.TagParser.UrlColor = xui.Color_Yellow

Different font:
B4X:
TextEngine.CustomFonts.Put("arial", fx.CreateFont("arial", 20, False, False))
BBCodeView1.Text = $"[font=arial]j sdfkl sdf[/font] asdj aksld "$
This is B4J code, you need to use Typeface instead.
 
Upvote 0

FrankDev

Active Member
Licensed User
Longtime User
Hello Erel,

thank you very much for the quick help.
Everything is working out fine now.

One thing I had not found, however. A 'vbcrlf' :)
So a new line.
I tried it with [br] which caused a crash right away. :)

Best regards
Everyone stay healthy!
 
Upvote 0
Top