Dim v As View = clv.AsView
v.CalcRelativeKeyboardHeight(...)
This code is from B4XPreferencesDialog, it might be useful:
B4X:
Dim p As View = CustomListView1.AsView.Parent.Parent
Dim rel As Int = p.CalcRelativeKeyboardHeight(Height)
If rel = 0 Then rel = CustomListView1.AsView.Height
CustomListView1.sv.Height = Min(rel, CustomListView1.AsView.Height)
Dim v As View = clv.AsView
v.CalcRelativeKeyboardHeight(...)
This code is from B4XPreferencesDialog, it might be useful:
B4X:
Dim p As View = CustomListView1.AsView.Parent.Parent
Dim rel As Int = p.CalcRelativeKeyboardHeight(Height)
If rel = 0 Then rel = CustomListView1.AsView.Height
CustomListView1.sv.Height = Min(rel, CustomListView1.AsView.Height)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.