Android Question [SOLVED] set xCustomListView height

sirjo66

Well-Known Member
Licensed User
Longtime User
Hello to all,
in an app I use CustomListView but now I want to change to the last xCustomListView

In this app, after some clv.Add(........) I make a test for to know if the CustomListView is less then 100%y height, so I can resize CustomListView.
I use this lines:
B4X:
Dim sv As ScrollView
sv = clv.AsView
If sv.Panel.Height<100%y Then sv.Height=sv.Panel.Height

but I don't understand how I can do it with xCustomListView

Thanks
Sergio
 

sirjo66

Well-Known Member
Licensed User
Longtime User
SOLVED !!!

B4X:
    If clv.sv.ScrollViewInnerPanel.Height < 100%y Then clv.AsView.Height = clv.sv.ScrollViewInnerPanel.Height
 
Upvote 0
Top