I think we are not able to and even can't Use stdviewpager anymore.
I just dont know what to use instead of these lines. Its been a while since I coded for android.
I just dont know what to use instead of these lines. Its been a while since I coded for android.
B4X:
Private vp As StdViewPager
For Each v As View In vp.Panels(Nmbr-1).GetAllViewsRecursive
vp.Initialize("vp", Ettape_Size-1, 100%x, height)
Activity.AddView(vp.AsView, 0, 0, 100%x, height)
vp.Panels(i-1).LoadLayout("page1.bal")
vp.AsView.left = Activity.Width / 2 - vp.panels(0).Width / 2
vp.AsView.top = Activity.height / 2 - vp.panels(0).height / 2
vp.ScrollTo(params.LastKnown-1,False)
Sub VP_PageSelected (Position As Int)
vp.ScrollTo(params.LastKnown-1,False)
vp.ScrollTo(params.LastKnown-1,False)