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?
Dim b As Button
b.Initialize("b", b.STYLE_SYSTEM)
b.Text = "Click me"
b.Width = 100
b.Height = 50
Dim no As NativeObject = TextField1
no.SetField("inputAccessoryView", b)
My Situation was, i had a TextBox in the middle, left a "Take Photo" Button, right a Send Button, on the TextView was a white line, because on Android i dont found a solution to change the color of EditText Line, and a white line over the TextBox for Multiline, to seperate it with the content in the list above.
My Situation was, i had a TextBox in the middle, left a "Take Photo" Button, right a Send Button, on the TextView was a white line, because on Android i dont found a solution to change the color of EditText Line, and a white line over the TextBox for Multiline, to seperate it with the content in the list above.
You suppose i enter in Textfield and select English language,
Till here my Textfield top is correct
When i select emoji keyboard,my Textfield top is wrong
6S
For English language,Height is 258 and for Emoji keyboard is 206
While for Emoji must return 258 and for English return 206
If the result was correct,my code was working perfectly
OS or Device is not important about keyboardheight
It is only incorrect height for me
B4X:
If Height = 216 Then
TextField1.Top = Page1.RootPanel.Height - TextField1.Height - 258
Else if Height = 258 Then
TextField1.Top = Page1.RootPanel.Height - TextField1.Height - 216
End If
This code is working for me now but no for first time
Thats my Keyboard IOS 11.3
Maybe it is a setting on the TextView, i will look after lunch.
The Blue comes from the Background, the Background are blue.
View attachment 69139View attachment 69140
Thats my Keyboard IOS 11.3
Maybe it is a setting on the TextView, i will look after lunch.
The Blue comes from the Background, the Background are blue.
yes, but This is an important feature for users, I hate apps, where this is disabled because I've become lazy to write words completely, especially when you're on the go, you commit yourself constantly.
yes, but This is an important feature for users, I hate apps, where this is disabled because I've become lazy to write words completely, especially when you're on the go, you commit yourself constantly.
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.