B4i Tutorial CalcRelativeKeyboardHeight Example - Erel    
May 26, 2021   
(11 reactions)-keyboard-handling.131078/
A new method was added to all views named CalcRelativeKeyboardHeight. With this method you can calculate the keyboard's top line relatively to the current view... Page1_KeyboardStateChanged (Height As Float)
Dim TableViewMaxHeight As Int = TableView1.BaseView.CalcRelativeKeyboardHeight(Height)
Dim TableViewMaxHeightWithNoKeyboard As Int = Page1.RootPanel.Height - 10dip....CalcRelativeKeyboardHeight(Height), _
Page1.RootPanel.Height - 10dip - CustomListView1.GetBase.Top)
End...
B4i Question xCustomListView doesn't have the method "CalcRelativeKeyboardHeight" - Mike1970    
Dec 13, 2019Why xCustomListView doesn't have the method "CalcRelativeKeyboardHeight"?...
link: the XUI Views library.
Edit: Actually some methods appears, but not "CalcRelativeKeyboardHeight...
link: I Tried to write “clv.AsView. “ and Nothing appeared after the dot
Make sure that XUI library is sel...
link:
Dim v As View = clv.AsView
v.CalcRelativeKeyboardHeight(...)
This code is from...
B4i Question CalcRelativeKeyboardHeight CustomListView - Erel (first post)    
Mar 29, 2020   
(1 reaction)Try this example: https://www.b4x.com/android/forum/threads/b4x-cross-platform-chat-layout-example.112649/#content...
link: Hello, i'm trying to calculate the keyboard with customlistview, i tryed this https://www...
Other B4i v2.50 is released - Erel    
Apr 11, 2016   
(19 reactions) can be set.
TextView new events: BeginEdit, EndEdit and TextChanged.
View.CalcRelativeKeyboardHeight: Important new method that helps with the calculation of the keyboard top point relatively to the current...
B4i Question Searching for iIQKeyboardManager library for older B4i version (v8.51) - Erel (first post)    
Jul 23, 2025I'm not familiar with this library (the name is probably incorrect). I recommend using something like this: https://www.b4x.com/android/forum/threads/calcrelativekeyboardheight-example.64054/#content...
link: Hello Erel, Thank you for your quick reply. I appreciate the link to the CalcRelativeKeyboardHeight...
B4i Question View over the keyboard - Alexander Stolte    
May 21, 2018 this Function: "CalcRelativeKeyboardHeight".
This do not work:
pnl_ground.Top = pnl_ground.CalcRelativeKeyboardHeight(Height)
How can i calculate the top value, so i can place my view over...
link: this with the "CalcRelativeKeyboardHeight" function?...
link: /calcrelativekeyboardheight-example.64054/...
link: the top of the Keyboard
Dim ff As Int = pnl_ground.CalcRelativeKeyboardHeight(Height)
Dim ff2...
B4i Question Keyboard hides TextViews in Scrollview after IOS 11.4 update - Segga    
Jun 2, 2018I've been using CalcRelativeKeyboardHeight in pg_KeyboardStateChanged to make the TextViews in my ScrollView layout accessible.
sv.Height = Min(sv.CalcRelativeKeyboardHeight(Height), pg.RootPanel.Height-10-sv.Top)
Since updating to IOS 11.4, the bottom TextViews are now totally hidden by the keyboard.
Any advice appreciated....
link: .CalcRelativeKeyboardHeight(Height), pg.RootPanel.Height - 10 - Panel1.Top)
svUserInfo.Height = Panel1.Height
End Sub...
B4i Question [RESOLVED] - CLV + Page1_KeyboardStateChanged - ddefrain (first post)    
Jun 5, 2023.CalcRelativeKeyboardHeight(Height)
If rel = 0 Then rel = clvSettings.AsView.Height
clvSettings.sv.Height = Min(rel, clvSettings.AsView.Height)
End Sub
Thank's it works like a charm ?
Best Regards...
This is the Fix
Sub pg_KeyboardStateChanged (Height As Float)
' // https://www.b4x.com...
link: (v.CalcRelativeKeyboardHeight(Height), pg.RootPanel.Height - 10dip - clvSettings.GetBase.Top...
link: .CalcRelativeKeyboardHeight(Height)
If rel = 0 Then rel = clvSettings.AsView.Height
clvSettings.sv.Height...
B4i Question B4XFloatTextField keyboard hiding views. - Erel (first post)    
May 31, 2020CalcRelativeKeyboardHeight is a bit confusing however there is a tutorial about it: https://www.b4x.com/search?query=CalcRelativeKeyboardHeight...
link: As Panel = f.mBase
Dim d As Double = base.CalcRelativeKeyboardHeight(Height...
B4i Question B4i Bug? View doesn't swipe up when Keyboard appears since updating to B4i v7.00 - Erel (first post)    
Mar 7, 2021You need to understand how this method works: https://www.b4x.com/android/forum/threads/calcrelativekeyboardheight-example.64054/#content...
link:
Private Sub pg_KeyboardStateChanged (Height As Float)does not return the correct keyboard height...
link: that neither pg_KeyboardStateChanged (Height As Float) nor Page.RootPanel.CalcRelativeKeyboardHeight...
Page: 1  
2  
3  
4  
5  
6  
7