Android Question loadLayout in scrollView

Mick96

Member
Licensed User
Longtime User
Hello, I have been trying to figure out how to load a layout into a scrollview. I guess I need the simple newb explanation.
I have an activity and a layout with a scrollview.
I created a new/seperate layout named "scrollViewPanel" and added a panel to it, then added a few views (button, textEdit) to the panel. Then in my activity I declared the scrollview Dim ScrollView1 As ScrollView and added the panel layout to it. ScrollView1.Panel.LoadLayout("scrollViewPanel") When I run the code I can see my scrollView and can see the scroll indicator does move when I scroll but I don't see the layout I I'm trying to load into the scrollview. Any Ideas where I may be going wrong?
Thanks.
 

klaus

Expert
Licensed User
Longtime User
With the explanations it should work, so you need to give more information.
It would have been easier for us to help if you had posted your project as a zip file (IDE menu File / Export As Zip).
That way we would have seen what exactly you have done and what is wrong.
Do you initialize the ScrollView in th code ? You shouldn't.

Did you have a look at this example ScrollView example with a Panel higher than the screen ?
 
Upvote 0
Top