Hi
Lets say, I have s ScrollView2D with some views and its panel width is N*ScreenWidth. ScroolView2D is invisible ( ScroolView2D.Visible = False ), but on some button click I reveal it and want to scroll it to, say, K ( K = 0,1,..., N-1 ) position. My code is:
Unfortunatly, nothing happens. ScrollView2D panel don't scroll
So, what is my error here ?
Thank you
Lets say, I have s ScrollView2D with some views and its panel width is N*ScreenWidth. ScroolView2D is invisible ( ScroolView2D.Visible = False ), but on some button click I reveal it and want to scroll it to, say, K ( K = 0,1,..., N-1 ) position. My code is:
B4X:
dim SV2d as ScrollView2d
' add some views and set panel width
SV2d.Panel.Width = N*ScreenWidth
' then on button click i want to scroll it to the K pos:
sub Button_Click
SV2D.Visible = True
SV2D.HorizontalScrollPosition = K*ScreenWidth
end sub
Unfortunatly, nothing happens. ScrollView2D panel don't scroll
So, what is my error here ?
Thank you