M Mike1970 Well-Known Member Licensed User Longtime User Dec 13, 2019 #1 Why xCustomListView doesn't have the method "CalcRelativeKeyboardHeight"?
Erel B4X founder Staff member Licensed User Longtime User Dec 15, 2019 #2 Code: Dim v As View = clv.AsView v.CalcRelativeKeyboardHeight(...) This code is from B4XPreferencesDialog, it might be useful: Code: 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
Code: Dim v As View = clv.AsView v.CalcRelativeKeyboardHeight(...) This code is from B4XPreferencesDialog, it might be useful: Code: 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)
M Mike1970 Well-Known Member Licensed User Longtime User Dec 15, 2019 #3 Erel said: Code: Dim v As View = clv.AsView v.CalcRelativeKeyboardHeight(...) This code is from B4XPreferencesDialog, it might be useful: Code: 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) Click to expand... 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
Erel said: Code: Dim v As View = clv.AsView v.CalcRelativeKeyboardHeight(...) This code is from B4XPreferencesDialog, it might be useful: Code: 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) Click to expand... 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
Erel B4X founder Staff member Licensed User Longtime User Dec 15, 2019 #4 Mike1970 said: I Tried to write “clv.AsView. “ and Nothing appeared after the dot Click to expand... Make sure that XUI library is selected. You should see a list of B4XView methods. Upvote 0
Mike1970 said: I Tried to write “clv.AsView. “ and Nothing appeared after the dot Click to expand... Make sure that XUI library is selected. You should see a list of B4XView methods.
M Mike1970 Well-Known Member Licensed User Longtime User Dec 15, 2019 #5 Erel said: Make sure that XUI library is selected. You should see a list of B4XView methods. Click to expand... Yes I imported the XUI Views library. Edit: Actually some methods appears, but not "CalcRelativeKeyboardHeight" Upvote 0
Erel said: Make sure that XUI library is selected. You should see a list of B4XView methods. Click to expand... Yes I imported the XUI Views library. Edit: Actually some methods appears, but not "CalcRelativeKeyboardHeight"