Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

android 锁屏之后再解锁,输入框不弹出 #107

Open
eeeeegit opened this issue May 29, 2018 · 1 comment
Open

android 锁屏之后再解锁,输入框不弹出 #107

eeeeegit opened this issue May 29, 2018 · 1 comment

Comments

@eeeeegit
Copy link

eeeeegit commented May 29, 2018

self.account_tf = ccui.EditBox:create(_res.input_account.size, "pixel_point.png", ccui.TextureResType.plistType):addTo(self)
self.account_tf:setPlaceHolder("请输入账号")
self.account_tf:align(display.LEFT_CENTER, _res.input_account.x, _res.input_account.y)
self.account_tf:setMaxLength(16)
self.account_tf:setInputMode(cc.EDITBOX_INPUT_MODE_SINGLELINE)
self.account_tf:setFontColor(_res.input_account.color)

这种方式创建一个输入框。
首先,进入这个输入框显示界面
然后锁屏
在锁屏之后解锁,再点击输入框,键盘不弹出

oppo CPH1609 (F3)
android版本6.0

打断点得到的结果
/libcocos2dx/src/main/java/org/cocos2dx/lib/Cocos2dxEditBoxHelper.java
433行 if (null != editBox) 得到的结果为空

@u0u0
Copy link
Owner

u0u0 commented Jul 16, 2018

我测试了,没发现呢。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants