Misterbates Active Member Licensed User Oct 17, 2017 #1 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!
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 Oct 18, 2017 #2 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
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