Android Question IME issues

tsteward

Well-Known Member
Licensed User
Longtime User
I have the following lines of code
B4X:
    IMEMain.Initialize("IMEMain")
    IMEMain.AddHeightChangedEvent
    'IMEMain_HeightChanged(100%y, 0) 'manually call this method to set the layout of EditText1 and btnHideKeyboard
    IMEMain.AddHandleActionEvent(ETSearch.TextField)

And I get this error but don't understand why
 

tsteward

Well-Known Member
Licensed User
Longtime User
Yeah I know but it works in small examples. Was just hoping for some suggestions on how to track it down.
 
Upvote 0

tsteward

Well-Known Member
Licensed User
Longtime User
etsearch is a B4XFloatTextField
 
Upvote 0

tsteward

Well-Known Member
Licensed User
Longtime User
B4X:
dim edt as TextEdit = B4XFloatTextField.Textfield
IMEMain.AddHandleActionEvent(edt)
Thanks for that but I can't get past the line
IMEMain.AddHeightChangedEvent

Without the error above, so can't compile and don't understand why I am getting this error.
What might be causing it?
 
Upvote 0

tsteward

Well-Known Member
Licensed User
Longtime User
Okay got it figured. Had to move the IMEMain.Initialize("IMEMain") up the list further before sliding menu

Thank you
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…