I have a panel layout with a number of views loaded onto a scrollview2D panel. How can I effect the panel to shift up automatically by say 50dip on pressing a swiftbutton to make another hidden view below visible? Thanks
The scroll direction, just one using ScrollView (vertical), both vertical and horizontal "simultaneously" (I mean that with ScrollView2D you cannot swipe horizontally perfectly nor vertically, choosing how when you want/need, it's a free movement.
Also, HorizontalScrollView exists too.
Because I reread your post and misunderstood it and thought that the answer was wrong.
You could also use: Scrollview2D.SmoothScrollTo(Scrollview2D.HorizontalScrollPosition, Scrollview2D.VerticalScrollPosition + 50dip)
ScrollView internal panel can be moved vertically only, by code or using your finger ?;
HorizontalScrollView internal panel... the same but horizontally;
ScrollView2D: by code, you can choose whether to move its internal panel hor or ver, using your finger you can move it "simultaneously" to both directions
Because I reread your post and misunderstood it and thought that the answer was wrong.
You could also use: Scrollview2D.SmoothScrollTo(Scrollview2D.HorizontalScrollPosition, Scrollview2D.VerticalScrollPosition + 50dip)
But I am able to scroll only vertically despite sv2D as per my post #7
Why ?
If you set the Width of ScorllView2D.Width correctly you are able to scroll in both directions.
Then you can change the position with either ScorllView2D.HorizontalScrollPosition
or
ScorllView2D.SmoothScrollTo(PosX, PosY)