I must be missing something fundamental about Scrollview. I would have thought the thing that it would fundamentally do is scroll without too much effort, so clearly I am missing something fundamental.
I have looked at the helpscrollview example without success.
I have tried adding my images via the designer, then via the code.
Basically what I want is this: I need to be able to scroll a series of several images and text of variable length off the page vertically. I am willing to start with fixed length if that helps.
Here is what I have done.
Created a new Activity ("localView"), added a scrollview (ScrollView1) to it, then in code, added 20 images , (10 rows of 2) that scroll off the page, like this:
...and so on. All the images are where they are supposed to be, but it will not scroll so I can't see the bottom ones.
As I said, there must be something fundamental I'm missing. I've added doevents and ScrollView1.FullScroll(True) in the hopes I could wake it up but to no avail. Height, InnerHeight and Panel (which I'm not clear on) Height are all set to 800.
Please let me know where the facepalm move is..
Thanks,
Vaughan
:sign0104:
I have looked at the helpscrollview example without success.
I have tried adding my images via the designer, then via the code.
Basically what I want is this: I need to be able to scroll a series of several images and text of variable length off the page vertically. I am willing to start with fixed length if that helps.
Here is what I have done.
Created a new Activity ("localView"), added a scrollview (ScrollView1) to it, then in code, added 20 images , (10 rows of 2) that scroll off the page, like this:
B4X:
Dim t,w,h As Int
w = 80
h = 80
t = 60
ScrollView1.Panel.Height = 800
ScrollView1.Panel.AddView(imgSun,0,t,w,h)
ScrollView1.Panel.AddView(imgSunSign,w+10,t,w,h)
t = t + h + 10
ScrollView1.Panel.AddView(imgMoon,0,t,w,h)
ScrollView1.Panel.AddView(imgMoonSign,w+10,t,w,h)
t = t + h + 10
As I said, there must be something fundamental I'm missing. I've added doevents and ScrollView1.FullScroll(True) in the hopes I could wake it up but to no avail. Height, InnerHeight and Panel (which I'm not clear on) Height are all set to 800.
Please let me know where the facepalm move is..
Thanks,
Vaughan
:sign0104: