Android Question B4XView and CSBuilder

Misterbates

Active Member
Licensed User
Anyone know if the XUI BXView object supports CharSequence/AttributedText strings built by CSBuilder? Can I assign them using the .Text attribute and XUI will assign either to .Text (Android) or .AttributedText (IOS)?

Thanks!
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
You can use CSBuilder in B4A with B4XView.Text. Currently you cannot use it with attributed strings. However the native view is always available:
B4X:
Dim lbl As Label = B4XView
#if B4i
Dim cs As CSBuilder
lbl.AttributedText = cs.Initialize.Color(xui.Color_Gray).Append("asdasd").PopAll
#End If
 
Upvote 0
Top