keyboardWillShow doesn't be called on android?

keyboardWillShow doesn't be called on android?
0.0 0

#1

i want to move CCTextFieldTTF up when soft keyboard will show in CCIMEDelegate::keyboardWillShow, but i found it doesn’t be called on android,
it is only called by CCIMEDispatcher::dispatchKeyboardWillShow, but CCIMEDispatcher::dispatchKeyboardWillShow never be called.
does some one know about this, or is there any other way to know when and where the soft keyboard will show and the height of the soft keyboard on android ?
thanks.


#2

no one knows ?


#3

change device orientation


#4

i have change it’s orientation, but it’s not work


#5

zj l wrote:

i want to move CCTextFieldTTF up when soft keyboard will show in CCIMEDelegate::keyboardWillShow, but i found it doesn’t be called on android,
it is only called by CCIMEDispatcher::dispatchKeyboardWillShow, but CCIMEDispatcher::dispatchKeyboardWillShow never be called.
does some one know about this, or is there any other way to know when and where the soft keyboard will show and the height of the soft keyboard on android ?
thanks.

i hava same problem,do you fix it


#6

zj l wrote:

i want to move CCTextFieldTTF up when soft keyboard will show in CCIMEDelegate::keyboardWillShow, but i found it doesn’t be called on android,
it is only called by CCIMEDispatcher::dispatchKeyboardWillShow, but CCIMEDispatcher::dispatchKeyboardWillShow never be called.
does some one know about this, or is there any other way to know when and where the soft keyboard will show and the height of the soft keyboard on android ?
thanks.

i hava same problem,do you fix it


#7

I encounter the same problem too.Any ideas?


#8

I encounter the same problem too.Any ideas?


#9

I know it has been some time since this post was started, but I am facing exactly the same problem, yet no answer I found on the Internet. Did anyone solve this issue?


#10

when i look the TextInputTest in TestCpp project, it called the keyboardWillShow (show in logcat) but in mayCode its not called.

any idea about this?

edited: actually it’s not showing any log in TestCpp myBad


#11

Has anybody fixed it?


#12

The sam thing. How to fix this?


#13

same with Text Input Test
TextField -> addEventListener([=](Ref* node, ui::TextField::EventType event){
if (event == ui::TextField::EventType::INSERT_TEXT){
// When Text inserted
}else if (event == ui::TextField::EventType::ATTACH_WITH_IME){
//when keyboard showed
}else if (event == ui::TextField::EventType::DETACH_WITH_IME){
// When Keyboard Hide
}else if (event == ui::TextField::EventType::DELETE_BACKWARD){
// When delete keyboard touched
}