Hey guys for some reason my scrollview will not scroll any ideas why? I added a scrollview and put a button,label and Imageview on top of it and it will not scroll at all.
Scrollview will scroll only if the views "overflow" within a scrollview. That is, the views must be placed in such a way that they cannot be seen together without scrolling.
Also make sure the scrollview.panel.height is greater than scrollview.height.
Scrollview will scroll only if the views "overflow" within a scrollview. That is, the views must be placed in such a way that they cannot be seen together without scrolling.
Also make sure the scrollview.panel.height is greater than scrollview.height.
Ok so here is exactly what I did I created a layout and called it BulbLayout and then within that layout I added 4 Views a scrollview which is in the back and then a button,imageview, and a label. Then I added this code:
B4X:
ScrollView1.Panel(BulbLayout)
This will throw and error when I try to do this. I am lost on how to do this.
This code is wrong and will not compile. It is impossible to help without seeing the complete code. You should choose File - Export as zip and upload your project.
You must post your project as a zip file (IDE menu Files / Export As Zip).
Otherwise it's impossible to help you as we don't know what you have done and how and where.
If BulbLayout is the layout file name then the code to load the layout is:
Attached you find the modified version.
- You need two layouts
-- one for the main screen with the ScrollView and perhaps other views.
-- one for the ScrollView.Panel content