document.addEventListener("plusready", function(){
var runtimeActivity = plus.android.runtimeMainActivity();
var w = runtimeActivity.getWindow();
plus.android.importClass(w);
var params=w.getAttributes();
plus.android.importClass(params);
var WindowManager = plus.android.importClass('android.view.WindowManager');
plus.android.invoke(w,"addFlags",WindowManager.LayoutParams.FLAG_ALT_FOCUSABLE_IM);
params.windowSoftInputMode = WindowManager.LayoutParams.FLAG_ALT_FOCUSABLE_IM;
}, false);
原理是调用window.addFlags FLAG_ALT_FOCUSABLE_IM
1 个评论
要回复文章请先登录或注册
星星不怕黑