popup virtual keyboard

Cor

Active Member
Licensed User
Longtime User
I now use the following code to show a hint and give it focus ( works great :)

But how to popup the virual keyboard at the same
so users can direct entering data without first pressing the edit box

B4X:
dim edtZoek as edittext

edtZoek.Text=""
 edtZoek.hint="Naam Gemeente"
 edtZoek.RequestFocus
 edtZoek.ForceDoneButton=True
 

drmover

Member
Licensed User
Longtime User
Keyboard won't popup on EditText

Hello,

I have few EditText on a view but from some reason the keyboard only popups for one time.

Any ideas?

Thank you,
Elad.
 
Upvote 0

drmover

Member
Licensed User
Longtime User
Reply

Thank you for your reply.

I am using INPUT_TYPE_NUMBERS and this is the code I am using:

Dim txtQuantity As EditText
txtQuantity.Initialize("Quantity")
txtQuantity.Text = "0"
txtQuantity.Gravity = Gravity.CENTER
txtQuantity.TextSize = 16
txtQuantity.InputType = txtQuantity.INPUT_TYPE_NUMBERS

lstAttachedItems.Panel.AddView(txtQuantity, 10, 10, 100, 60)

Thank you,
Elad.
 
Upvote 0

drmover

Member
Licensed User
Longtime User
Solution!!!

I found the problem... it happened because of the FocusChanged event...

When I took it off everything went back to normal.
 
Upvote 0
Top