Android Question ScrollingLabel GetView

aaronk

Well-Known Member
Licensed User
Longtime User
Hi,

I am trying to use the ScrollingLabel in my B4A app. - https://www.b4x.com/android/forum/threads/b4x-xui-scrolling-label.85516/#content

I am using the ULV and I have created a layout which contains a few labels, and a ScrollingLabel.

I am able to select the standard label like:

B4X:
Dim lbl As Label = LayoutPanel.GetView(3)

However, I can't seem to do the same with the ScrollingLabel. It comes up saying the types don't match.

B4X:
Dim myLabel As ScrollingLabel = LayoutPanel.GetView(4)

I want to be able to select the ScrollingLabel as I need to dynamically update the text of the ScrollingLabel using the ULV at a later time.
 

aaronk

Well-Known Member
Licensed User
Longtime User
That worked!

However, it seems to keep scrolling until it gets to the start again.

I was hoping it would scroll to the end and then scroll back to the start again.
 
Upvote 0
Top