Android Question Keyboard Hide event

Arf

Well-Known Member
Licensed User
Longtime User
Does the disappearence of the keyboard cause an event? I'm sure it does but I am struggling to search for what it's called.

Also, I seem to remember that in the IDE there is a way to see a list of available events interactively, while writing code - can someone remind me what the method is?

Thanks
 

Arf

Well-Known Member
Licensed User
Longtime User
I can capture an ENTER and subsequent keyboard hide using IME, fine.
I can't figure out a way to detect keyboard disappearance when the user presses the downfacing triangle on the bottom of screen (one of the three android control buttons).
Is there any way to do so, or prevent that button from being available so that ONLY a keyboard ENTER press can close the keyboard?

Or any other way yo detect if the keyboard is visible or not, so I can use a timer to detect if it's there or not?
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
one of the three android control
probably it is the BACK-Key which you need to check....
The IME does not raise an event.
 
Upvote 0

Arf

Well-Known Member
Licensed User
Longtime User
Activity_Keypress does not get hit when that button is pressed either :-(
When the keyboard comes up, the back BACK key (which is a left pointing triangle and does trigger Activity_Keypress) becomes a down pointing triangle which doesn't hit that sub.

this is causing me no end of troubles! I really don't want to make my own keyboard, if that's even possible.
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
Upvote 0

Arf

Well-Known Member
Licensed User
Longtime User
Aah yes thanks, not sure how I missed that! (event selection)

I tried the HeightChanged event but it doesn't trigger - I think because my app is full screen.
In the end I just shift the whole screen up by 20% (once only) when the lower textboxes that are hidden by the keyboard get focus and back down again when enter is pressed, a bit rough and ready but works fine on my smaller devices. Need to check it on a large device though.
 
Upvote 0
Top