Im using the CustomKeyboard Lib from https://www.b4x.com/android/forum/threads/customkeyboard-library.48953/.
The Example is working and also in my app.
The only problem so far is, as soon as you assign a color (Root.Color=Colors.Blue) to the root, the keyboard is invisible (But reacts to input).
This also happens if you set a color of the layout in the designer or if you set the color some seconds after the keybord is visible, the keyboard disappears right after the color setting.
If you dont assign any Color, the keyboard stays visible.
In the example it works (since it uses the standard activity i guess it has something to do with B4XPages)
The Example is working and also in my app.
The only problem so far is, as soon as you assign a color (Root.Color=Colors.Blue) to the root, the keyboard is invisible (But reacts to input).
This also happens if you set a color of the layout in the designer or if you set the color some seconds after the keybord is visible, the keyboard disappears right after the color setting.
If you dont assign any Color, the keyboard stays visible.
In the example it works (since it uses the standard activity i guess it has something to do with B4XPages)
B4X:
'This event will be called once, before the page becomes visible.
Private Sub B4XPage_Created (Root1 As B4XView)
Root = Root1
Root.LoadLayout("Keyboard")
Root.Color=Colors.Blue 'if you remove this, the keyboard is visible
Dim StartKeyboard As String = "nrkeyboard"
CustKeyBoard.Initialize("CKB", "keyboardview")
CustKeyBoard.RegisterEditText(Inputfield, "Inputfield", StartKeyboard, True)
CustKeyBoard.ShowKeyboard(Inputfield)
End Sub
Last edited: