Android Question BBLabel - Assign to top when in scrollview

aaronk

Well-Known Member
Licensed User
Longtime User
Hi,

I am using BBLabels in my B4A app.

I have a layout with a BBLabel, and have the Anchors set for each side of the screen.
I have the BBLabel set for Vertical alignment set for 'top'.

I then have a scrollview in a separate layout, and I loaded the layout, and then called the BBLabel layout in the scrollview.

However the text seems to be in the middle. How can I assign the text to the top ?

What I am trying to do is have text in the label, and some will be bold but if the text is too long then I want the user to be able to scroll down to read the rest of the text.

Making it Bold etc is easy done, but if the customers phone is a small screen size, then I want to make it so the customer can scroll up and down manually to read the text. Similar to a terms and conditions.

B4X:
ScrollView.Panel.LoadLayout("layout_with_BBLabel")
BBLabel1.Text = "message to show in [b]BBLabel[/b]"
 
Top