I have some content: 1-1-F-40, 1-1-F-41... There will be many of them like this. How to achieve the effect of a running light in B4A, allowing scrolling from right to left?
Don't use this. Latest version is included in XUI Views. For rich text, use https://www.b4x.com/android/forum/threads/b4x-bbscrollinglabel-rich-text-scrolling-label.114310/#content A custom view with a label that scrolls automatically when the text is wider than the label. The class is...
Sub Class_Globals
Private Root As B4XView
Private xui As XUI
Private BBScrollingLabel1 As BBScrollingLabel
Private TextEngine As BCTextEngine
End Sub
Public Sub Initialize
End Sub
Private Sub B4XPage_Created (Root1 As B4XView)
Root = Root1
Root.LoadLayout("1")
TextEngine.Initialize(Root)
BBScrollingLabel1.TextEngine = TextEngine
BBScrollingLabel1.Text = $"[b][u]BBScrollingLabel[/u][/b]: [color=red]Red[/color] [color=0xFF08B31F]Green[/color] [color=blue]Blue[/color]. More information: [url]https://www.b4x.com[/url]..............."$
End Sub
Private Sub B4XPage_Appear
'this is required in B4A only. It resumes the animation after the activity was paused.
BBScrollingLabel1.Text = BBScrollingLabel1.Text
End Sub