Arf Well-Known Member Licensed User Longtime User Sep 2, 2016 #1 I'm trying to catch a keyboard disappear using IME, but the event never occurs. I've based the code on Erel's tutorial so I'm not sure why it's not happening. Here are the relevant bits of code: Code: Sub Globals Dim IME As IME Code: Sub Activity_Create(FirstTime As Boolean) Activity.LoadLayout("PatientsL") IME.Initialize("IME") IME.AddHeightChangedEvent Code: Sub IME_HeightChanged(NewHeight As Int, OldHeight As Int) If NewHeight > OldHeight Then unshiftScreen End If I am also using the phone library to lock orientation to whatever orientation the activity started in, if that makes any difference.
I'm trying to catch a keyboard disappear using IME, but the event never occurs. I've based the code on Erel's tutorial so I'm not sure why it's not happening. Here are the relevant bits of code: Code: Sub Globals Dim IME As IME Code: Sub Activity_Create(FirstTime As Boolean) Activity.LoadLayout("PatientsL") IME.Initialize("IME") IME.AddHeightChangedEvent Code: Sub IME_HeightChanged(NewHeight As Int, OldHeight As Int) If NewHeight > OldHeight Then unshiftScreen End If I am also using the phone library to lock orientation to whatever orientation the activity started in, if that makes any difference.
Arf Well-Known Member Licensed User Longtime User Sep 2, 2016 #2 Ah, it's because the method doesn't work in full screen mode. Does anyone know of any workarounds? I need to know when the keyboard comes and goes, and if I can determine the new available screen height, that would be fantastic. Upvote 0
Ah, it's because the method doesn't work in full screen mode. Does anyone know of any workarounds? I need to know when the keyboard comes and goes, and if I can determine the new available screen height, that would be fantastic.
Arf Well-Known Member Licensed User Longtime User Sep 2, 2016 #3 OK well it looks like there is but one workaround, on this page here: http://stackoverflow.com/questions/...hen-softkeyboard-is-visible/19494006#19494006 but I wouldn't have a clue what to do with all of that. Upvote 0
OK well it looks like there is but one workaround, on this page here: http://stackoverflow.com/questions/...hen-softkeyboard-is-visible/19494006#19494006 but I wouldn't have a clue what to do with all of that.