iOS Question Scroll problem with customlistview

sinuser

Member
Licensed User
Longtime User
Hello to all,
I entered a customviewview in a scrollview and I have this problem:

when I add the lines to the grid

gridComunications.InsertAt (0, CreateListItem (Com), 153dip, Com)

the line has a height of 165dip, but if I add it with that height the lines are higher, why?
however, in this way I can have a good look and everything is fine if the height of the customlistview is greater than the height of the screen, the problem is when I have a few lines and then scrollview remains locked, but I need the scrollview to work however, because in the scroll up must update the elements.
I tried this way
svHome.ContentHeight = temp
If temp <svHome.Height Then
svHome.Panel.Height = temp - 1dip
svHome.Height = temp - 1dip
End If
that visually makes me run the scroll, but I do not fire the sv_ScrollChanged event and so it's useless.
Thank you.
 

sinuser

Member
Licensed User
Longtime User
i dont use xCLV but CLV,
i need to manage sv_ScrollChanged
and i have this proj in b4i and b4a.
 
Upvote 0

sinuser

Member
Licensed User
Longtime User
now i have xclv and the problem is the same, how can i enable scroll on scrollview when the scroll is not bigger then page? i need scroll for refresh item on grid and i need to have a xcustomlistview in scrollview.
thanks
 
Upvote 0
Top