Android Question Is it possible to run a EditText pressing a button?

D

Deleted member 30048

Guest
Hello,

I have 1 button and 1 edittext. I want to disable that you can click on an EditText, instead I want that the keyboard appears (enable editext) when you press the button.

It is possible to do this?

Thank you
 

mangojack

Expert
Licensed User
Longtime User
with the IME library you could try the following ..

B4X:
Sub Globals     
   Private ime1 As IME
End Sub

Sub Button1_Click   
   EditText1.RequestFocus   
   ime1.ShowKeyboard(EditText1)   
End Sub
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…