Android Question [Solved] Prevent the soft keyboard from opening

MrKim

Well-Known Member
Licensed User
How can I prevent the soft keyboard from opening for one particular edit text.
It is too high on the Activity so IME_HeightChanged doesn't seem to fire.
_FocusChanged only works when you first enter the View.

I have built my own keyboard but I want the user to be able to set the cursor where he wants just like any other edittext. Problem is every time you touch the view the keyboard pops up.

Thanks.
 
Last edited:

MrKim

Well-Known Member
Licensed User
Make sure to check this numpad: https://www.b4x.com/android/forum/threads/customview-numpad.64191/#content

You can set the input type to none.
RE:You can set the input type to none.
Then I can't click in the box to set the cursor location. It is like it Disables the view.

I did take a look at your custom keyBoard, but I have already built what I needed, because of room constraints I made a transparent numeric keypad that can be moved around with GestureDetector. I wasn't sure I could modify your Gem as quickly as I could create my own. (I would like to know where you got the symbol for the backspace key, I am just using << because I don't have the tools/skill/time to make one as an image with a transparent background.)
 
Upvote 0

MrKim

Well-Known Member
Licensed User
I forgot to put my solution in this:
I put a panel over the top of the edit text and put IME.HideKeyboard in the click event.
 
Upvote 0
Top