Use 2s to do login interface, use to Cceditbox, after input, the keyboard can be moved down, but the screen is still displayed on the keyboard itself to enter the box, then click on the screen anywhere can not take the input box to kill.
Why iOS doesn't have these Android trivial problems, workaround: Need to modify src/org.cocos2dx.lib/
Cocos2dxeditboxdialog.java This class, so that it can do click on the screen, the keyboard input box into the contents of the Cceditbox inside, and the keyboard input box to kill.
@Overrideprotected voidOnCreate (FinalBundle psavedinstancestate) { Super. OnCreate (psavedinstancestate); This. GetWindow (). Setbackgrounddrawable (NewColordrawable (0x80000000)); FinalLinearLayout layout =NewLinearLayout ( This. GetContext ()); Layout.setorientation (linearlayout.vertical); //Add the following codeLayout.setonclicklistener (NewView.onclicklistener () {@Override Public voidOnClick (View v) {//TODO auto-generated Method StubCocos2dxhelper.setedittextdialogresult (Cocos2dxeditboxdialog. This. Minputedittext.gettext (). toString ()); Cocos2dxeditboxdialog. This. Closekeyboard (); Cocos2dxeditboxdialog. This. Dismiss (); } }); //========= FinalLinearlayout.layoutparams Layoutparams =NewLinearlayout.layoutparams (ViewGroup.LayoutParams.FILL_PARENT, ViewGroup.LayoutParams.FILL_PARENT);
Some Android phones cceditbox input after the keyboard input box does not disappear the problem