Sub Globals
'These global variables will be redeclared each time the activity is created.
Private SD_Keyboard1 As SD_Keyboard
Private TextField1 As EditText
Private TextField2 As EditText
End Sub
Sub Main
Dim Ck As CustomKey
Ck.Initialize
Ck.AddRowSimpleChar(Regex.Split(",","Q,W,E,R,T,Y,U,I,O,P"))
Ck.AddRowSimpleChar(Regex.Split(",","A,S,D,F,G,H,J,K,L"))
Ck.AddRowSimpleChar(Regex.Split(",","Z,X,C,V,B,N,M"))
SD_Keyboard1.Add(TextField1,Ck,"TextField1")
Dim Ck As CustomKey
Ck.Initialize
Ck.AddRowSimpleChar(Regex.Split(",","1,2,3,4,5,6,7,8,9,0,?"))
Ck.AddRowSimpleChar(Regex.Split(",","Q,W,E,R,T,Y,U,I,O,P"))
Ck.AddRowSimpleChar(Regex.Split(",","A,S,D,F,G,H,J,K,L"))
Ck.AddRowSimpleChar(Regex.Split(",","Z,X,C,V,B,N,M"))
SD_Keyboard1.Add(TextField2,Ck,"TextField2")
End Sub
Dim Ck As CustomKey
Ck.Initialize
Ck.AddRowSimpleChar(Regex.Split(",","Q,W,E,R,T,Y,U,I,O,P"))
Ck.AddRowSimpleChar(Regex.Split(",","A,S,D,F,G,H,J,K,L,Canc"))
Ck.AddRowSimpleChar(Regex.Split(",","Z,X,C,V,B,N,M,Next" ))
SD_Keyboard1.Add(TextField1,"TextField1",Ck,TextField2)
Dim Ck As CustomKey
Ck.Initialize
Ck.AddRowSimpleChar(Regex.Split(",","1,2,3,4,5,6,7,8,9,0,?"))
Ck.AddRowSimpleChar(Regex.Split(",","Q,W,E,R,T,Y,U,I,O,P,Canc" ))
Ck.AddRowSimpleChar(Regex.Split(",","A,S,D,F,G,H,J,K,L,Del"))
'Ck.AddRowSimpleChar(Regex.Split(",","Z,X,C,V,B,N,M,Enter"))
Dim L As List
L.Initialize
L.Add(Ck.cKey("Z",90,"z",122))
l.Add(Ck.cKey("X",90,"x",122))
L.Add(Ck.cKey("C",67,"c",99))
l.Add(Ck.cKey("V",86,"v",118))
l.Add(Ck.cKey("B",66,"b",98))
l.Add(Ck.cKey("N",78,"n",110))
L.Add(Ck.cKey("M",77,"m",109))
l.Add(Ck.cKey("ENTER",13,"enter",13))
Ck.AddRow(L)
SD_Keyboard1.Add(TextField2,"TextField2",Ck,TextField1)
Private Sub TextField1_FocusChanged (HasFocus As Boolean)
Log("Focus1: " & HasFocus)
End Sub
Private Sub TextField2_FocusChanged (HasFocus As Boolean)
Log("Focus2: " & HasFocus)
End Sub
Private Sub TextField1_EnterPressed
Log("Enter 1")
End Sub
Private Sub TextField2_EnterPressed
Log("Enter 2")
End Sub
Private Sub TextField2_TextChanged (Old As String, New As String)
Log("Change: " & Old & " " & New)
End Sub
I do not know. I think no real purpose, like several of my libraries, just some graphics.I'm not criticizing, I'm genuinely curious:
What's the purpose of this keyboard? What problem is it meant to solve instead of the built-in keyboard?
OMG you're living my life !I've learned to accept by experiencing customers asking for the strangest things
I guess I see this sort of idea as similar to the good old days when people wrote code to "pretty-print" code listings in hardcopy to try and make it more readable. In this case it would graphically make keyboards pretty and "attractive" maybe??What's the purpose of this keyboard? What problem is it meant to solve instead of the built-in keyboard?
It depends, sometimes it doesn't even appear yet I still can't understand.You've obviously put a lot of effort into this. What would be nice is a way to hide and show it so it duplicates the appearance and disappearance of the usual keyboard.
Unfortunately I briefly get a flash of the normal IME when focusing on the text field but I guess this is inevitable as you have to close the IME when it Android opens it.
A while back I did some research on keyboards and found that it's really a mess. Seems it's one area where Google didn't put a whole lot of effort, so my best guess is that you won't be able to do all that you want. Also consider there are many different keyboards from different companies, with their own quirks. Difficult situation.It depends, sometimes it doesn't even appear yet I still can't understand.
I don't have to put NOEDIT because the cursor disappears, but when I open it I close it immediately.
In very rare cases, the keyboard closes quickly.
It is under development, I have to test it on different devices to understand better
Yes I guess it is a mess, in ios I have other problems I have to build a way to make the cursor appear ....A while back I did some research on keyboards and found that it's really a mess. Seems it's one area where Google didn't put a whole lot of effort, so my best guess is that you won't be able to do all that you want. Also consider there are many different keyboards from different companies, with their own quirks. Difficult situation.
Here's the research I did:
How to disable keyboard suggestions
There are numerous threads in the forum about this, but I didn't have much luck with them. I wanted to disable the suggestions, but they always showed. I saw one suggestion setting the field to be for email, which disabled the suggestions - but that's clearly just a dirty workaround. This is...www.b4x.com
It certainly is. The keyboard APIs are a badly designed joke.A while back I did some research on keyboards and found that it's really a mess.
Thanks I'll watch itThis is probably not overly relevant here, but I stumbled on this post when I just now was searching for something else.
[customview] Numpad
A custom view made of text field (FloatLabeledTextField) and a small numpad that appears when the user clicks on the field. Similar to the B4A numpad customview: https://www.b4x.com/android/forum/threads/customview-numpad.64191/#content It depends on iUI8 (v1.20+) library. You need to add...www.b4x.com
Here, too, you don't see the blinking cursor. It is important to understand where he writesThis is probably not overly relevant here, but I stumbled on this post when I just now was searching for something else.
[customview] Numpad
A custom view made of text field (FloatLabeledTextField) and a small numpad that appears when the user clicks on the field. Similar to the B4A numpad customview: https://www.b4x.com/android/forum/threads/customview-numpad.64191/#content It depends on iUI8 (v1.20+) library. You need to add...www.b4x.com
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?