Hi,
I'm having two problems with a scrollView in B4i.
The first is the background color. I'd like for it to be transparent, so that I can show the same background image when scrolling, but it's always white. Even setting the attribute to transparent in the designer doesn't change it. The scrollView shows some TextFields, Buttons and other views that I use as a user registration form.
The second is that it doesn't scroll through the whole panel that I loaded in it, but it stops more or less halfway.
The project is pretty big so I can't upload it but if you need more info I'll provide it. These are the code snippets with which I manage the scrollview:
How do I solve these two problems?
I'm having two problems with a scrollView in B4i.
The first is the background color. I'd like for it to be transparent, so that I can show the same background image when scrolling, but it's always white. Even setting the attribute to transparent in the designer doesn't change it. The scrollView shows some TextFields, Buttons and other views that I use as a user registration form.
The second is that it doesn't scroll through the whole panel that I loaded in it, but it stops more or less halfway.
The project is pretty big so I can't upload it but if you need more info I'll provide it. These are the code snippets with which I manage the scrollview:
B4X:
Public Sub Show
If pg.IsInitialized = False Then
pg.Initialize("pg")
pg.RootPanel.LoadLayout("Scroll")
End If
Main.NavControl.ShowPage(pg)
ScrollView1.Panel.LoadLayout("Register")
End Sub
B4X:
Private Sub pg_Resize(Width As Int, Height As Int)
ScrollView1.ContentHeight = Panel1.Height
ScrollView1.ContentWidth = Width
End Sub
How do I solve these two problems?