Android Question Scroll Activity Title

Erel

B4X founder
Staff member
Licensed User
Longtime User
Step 1: Use AppCompat: https://www.b4x.com/android/forum/threads/79896/#content

Step 2: Add ScrollingLabel to your project and add it as a custom view to your layout (make sure to change the base alpha to 0)

Step 3: Make mBase a public variable.

Step 4:
B4X:
ACToolBarLight1.Title = ""
ACToolBarLight1.SubTitle = ""
ScrollingLabel1.mBase.RemoveViewFromParent
ScrollingLabel1.Text = "j sdlkfj slkdfj slkdf jslkdf jlskdf jsldf "
ACToolBarLight1.AddView(ScrollingLabel1.mBase, 100dip, 40dip, Bit.Or(Gravity.LEFT, Gravity.TOP))

Step 5:
B4X:
Sub Activity_Resume
   ScrollingLabel1.Text = ScrollingLabel1.Text
End Sub


SS-2018-11-01_09.58.07.png
 
Upvote 0
Top