My below code have no problem when i use simple keyboard(English or other language)
But when i select Emoji keyboard,my calculation about Keyboardheight is wrong
My code is
B4X:
Sub Page1_KeyboardStateChanged (Height As Float)
If Height > 0 Then
pnlcomment.Top = Page1.RootPanel.Height-pnlcomment.Height-Height
Else
pnlcomment.Top = Views.GetRealPageSize(Page1).Bottom - pnlcomment.Height
End If
End Sub
When i change language to emoji,this event return value but it is wrong
How do can i show textbox panel on top keyboard in all language or any size keyboard?
Then u should caluclate the top value new in the "Page Resize" Event, if the Keyboard is show, then you can place the Panel with the same Formel, but with the new values.
My problem is KeyboardHeight
It is wrong for first time and other time it is working
For first time,height for emoji is 216 and for English is 258 and for next time,height for emoji is 258 and for english is 216 and this values is correct not first time
If i can solve value for first time so i can show correct position for Textfield
save the height value if the normal keybaord is open and the height if the keybaird is not open, then open the emojis, compare it with the 2 Values and if it is not fit, then you know that the emoji keyboard is open and then you can calculate the top value new.
save the height value if the normal keybaord is open and the height if the keybaird is not open, then open the emojis, compare it with the 2 Values and if it is not fit, then you know that the emoji keyboard is open and then you can calculate the top value new.
i use this, because the "Height" value have the current height value, then i calculate minus the size of the root panel. it can not be wrong, you just have to understand what the code does and what values are changed
@Erel please watch attachment video from my phone
Your sample code have wrong in calculation also
When i switch to emoji keyboard,your sample have problem
Yes it is my iPhone 6S
Yes it is working fine but in Emoji keyboard if you care,you see your sample have problem in emoji keyboard and panel not resize