I have CustomListView that holds 10 items...i set height to 163dip and when i scroll down or up i dont get scroll by one page it scrolls half page down and up..i would like to scroll it up or down full size.
Here is code:
Here is code:
B4X:
Sub Globals
'These global variables will be redeclared each time the activity is created.
'These variables can only be accessed from this module.
Dim clvMasterCh As CustomListView
End Sub
Sub Activity_Create(FirstTime As Boolean)
'Do not forget to load the layout file created with the visual designer. For example:
'Activity.LoadLayout("Layout1")
'INIT - Master CustoListView
clvMasterCh.Initialize(Me, "clvMasterCh")
'ADDVIEW - Master
Activity.AddView(clvMasterCh.AsView, 97dip, 418dip, 407dip, 167dip)
'ADD - Items
For i = 1 To 10
clvMasterCh.Add(CreateChannelListMaster(i, clvMasterCh.AsView.Width, 165dip), 163dip, i)
Next
End Sub
Sub CreateChannelListMaster(Text As String, Width As Int, Height As Int) As Panel
'DEFINE - Panel
Dim pnlMain As Panel
'INIT - Panel
pnlMain.Initialize("pnlMain")
'COLOR - Panel
pnlMain.Color = Colors.ARGB(127, 10, 10, 10)
Return pnlMain
End Sub