How can I set the maximum scroll of a xCustomListView?, I'm trying this but it doesn't work how I want
B4X:
Private Sub B4XPage_Created (Root1 As B4XView)
Root = Root1
Dim p0 As B4XView = xui.CreatePanel("")
p0.SetLayoutAnimated(0, 0, 0, 100%x, 200%y)
Dim p1 As B4XView = xui.CreatePanel("")
p1.SetLayoutAnimated(0, 0, 0, p0.Width, p0.Height)
Dim p2 As B4XView = xui.CreatePanel("")
p2.SetLayoutAnimated(0, 0, 0, p0.Width, p0.Height)
Dim p3 As B4XView = xui.CreatePanel("")
p3.SetLayoutAnimated(0, 0, 0, p0.Width, p0.Height)
Root.LoadLayout("LytTabMenu")
p0.LoadLayout("LytASViewPager")
clv1.Add(p0, "")
TabStrip.Initialize(ASTabMenu1, ASViewPager1)
p1.LoadLayout("Lyt1")
p2.LoadLayout("Lyt2")
p3.LoadLayout("Lyt3")
TabStrip.AddPage(xui.Color_Blue, "AA", Null, Null, p1, 0)
TabStrip.AddPage(xui.Color_Cyan, "BB", Null, Null, p2, 1)
TabStrip.AddPage(xui.Color_Gray, "CC", Null, Null, p3, 2)
End Sub
Sub ASViewPager1_PageChanged(Index As Int)
TabStrip.ViewPager_PageChanged(Index)
MaxScroll(Index)
End Sub
Sub ASTabMenu1_TabClick(index As Int)
TabStrip.TabMenu_TabClick(index)
End Sub
Sub MaxScroll(Indice As Int)
Dim AltoScroll As Int
clv1.JumpToItem(0)
Select Indice
Case 0
AltoScroll = 80%y
Case 1
AltoScroll = 100%y
Case 2
AltoScroll = 120%y
End Select
clv1.sv.Height = AltoScroll
End Sub