iOS Question xCustomListView doesn't have the method "CalcRelativeKeyboardHeight"

Erel

Administrator
Staff member
Licensed User
B4X:
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)
 
Upvote 0

Mike1970

Well-Known Member
Licensed User
B4X:
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)
Oh ok, i have ti declare a View, and set the clv equal to that one.
I Tried to write “clv.AsView. “ and Nothing appeared after the dot
 
Upvote 0
Top