Android Question CustomKeyboard with B4XPages

Blueforcer

Well-Known Member
Licensed User
Longtime User
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)


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:

Blueforcer

Well-Known Member
Licensed User
Longtime User
Its getting weird. It seems that the keyboard is behind the root panel

Loading a PNG with transparent background:
B4X:
Sub B4XPage_Appear
    Root.SetBitmap(xui.LoadBitmapResize(File.DirAssets,"cover.png",Root.Width,Root.Height,False))
    CustKeyBoard.ShowKeyboard(Inputfield)
End Sub
1.png


Loading a JPG

2.jpg
 
Upvote 0

Mwinsor

Member
Licensed User
Longtime User
Did you ever get anywhere with this? I also am trying to use this library with B4XPages and having very strange issues.
 
Upvote 0
Top