Hi,
I'm working with a scrollView for the first time. Just as an example, I'm trying to display some lines of text following the format "Line number: 1", "Line number 2", etc...
I put a scrollView in a layout also containing an ImageView on top, and a label in another layout, that I then load on the scrollView panel in the activity_start.
The problem is that these lines show, there are a few empty lines. I want my texts to start showing at the beginning of the scrollView.
These are the variables:
This is the code I wrote:
If there are some informations I didn't provide, let me know.
Thanks.
I'm working with a scrollView for the first time. Just as an example, I'm trying to display some lines of text following the format "Line number: 1", "Line number 2", etc...
I put a scrollView in a layout also containing an ImageView on top, and a label in another layout, that I then load on the scrollView panel in the activity_start.
The problem is that these lines show, there are a few empty lines. I want my texts to start showing at the beginning of the scrollView.
These are the variables:
Globals:
Private ImageView1 As ImageView
Private ScrollView1 As ScrollView
Private LabelText As Label
Dim txt As String
This is the code I wrote:
Activity_Start:
Dim i As Int
Activity.LoadLayout("scrollLayout")
ScrollView1.Panel.LoadLayout("textLayout")
txt=""
For i=1 To 200
txt=txt&"Test number: "&i&CRLF
Next
LabelText.Text = txt
If there are some informations I didn't provide, let me know.
Thanks.