Android Question How to check if virtual keyboard raised

EvgenyB4A

Active Member
Licensed User
Longtime User
In my app I need to know if the soft keyboard raised. The EditText is in the upper part of the screen.
The event ime1_HeightChanged is not raised and I perform the followings:

ime1.Initialize("ime1")
ime1.AddHandleActionEvent(et)
ime1.AddHeightChangedEvent
 

eps

Expert
Licensed User
Longtime User
Can you post a screenshot of the issue as well?

I think there might be another way to resolve the issue you have, but am not completely sure of the problem.
 
Upvote 0

EvgenyB4A

Active Member
Licensed User
Longtime User
Can you post a screenshot of the issue as well?

I think there might be another way to resolve the issue you have, but am not completely sure of the problem.
The problem is that the keyboard itself appears, but the event that should indicate that keyboard appeared ( ime1_HeightChanged) is not raised.
Actually, my purpose is to hide the keyboard automatically after X seconds since it appears or any key of it pressed.
 
Upvote 0

EvgenyB4A

Active Member
Licensed User
Longtime User
Yes.
B4X:
SetActivityAttribute(ChooseProduct, android:windowSoftInputMode, adjustResize|stateHidden).
 
Upvote 0

EvgenyB4A

Active Member
Licensed User
Longtime User
I see the problem. The event ime1_heightChanged do raises if the attribute #FullScreen: false. When the attribute is true, that the event is not raised.
 
  • Like
Reactions: eps
Upvote 0
Top