配置:cocos2dx-js 3.6.1 android 20
activity 里打开了一个webview, webview里有登录框.
在配置文件里 ,设置:android:windowSoftInputMode=“adjustResize” 无效。
<activity android:name=“com.ddkids.play2learn.AppActivity”
android:label="@string/app_name"
android:screenOrientation=“landscape”
android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
android:configChanges=“orientation”
android:windowSoftInputMode=“adjustResize” //adjustPan 都无效
>
请问,该如何解决?
JS:自己绑定了webview 到3.6.1
var webView = new ccui.WebView();
var viewport=cc.visibleRect;
webView.setAnchorPoint(0,1);
webView.setContentSize(viewport.width, viewport.height);
// webView.retain();
webView.x = viewport.topLeft.x;
webView.y = viewport.topLeft.y;
webView.setScalesPageToFit(true);