iOS Question Numkeypad No done key issue, possible solution

Semen Matusovskiy

Well-Known Member
Licensed User
Create ordinary panel (let's name it panelKeyboard) with buttons and set inputAccessoryView property of relevant TextField/TextView
B4X:
nativeObjectInstance = textFieldAnswer
nativeObjectInstance.SetField ("inputAccessoryView", panelKeyboard)
 
Upvote 0

OliverA

Expert
Licensed User
Longtime User
To expand on @Semen Matusovskiy's answer, here is a code snippet by @Erel on adding a button to TextField that pops up over the number's keyboard:
B4X:
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)
So if TextField1 has the Keyboard Type set to NUMBER_PAD in the designer (or code), then the code above will add a "Click me" button above the number pad.

Source: https://www.b4x.com/android/forum/threads/input-accessory-views.51000/post-318960
 
Upvote 0
Top