浏览代码

fix keyboard show bug on sdk28

/main
xingwei.zhu 6 年前
当前提交
7330ff0a
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1
      Runtime/Plugins/platform/android/editing/TextInputPlugin.java

1
Runtime/Plugins/platform/android/editing/TextInputPlugin.java


public TextInputPlugin() {
ViewGroup contentView = (ViewGroup)UnityPlayer.currentActivity.findViewById(android.R.id.content);
mView = new TextInputView(UnityPlayer.currentActivity);
mView.requestFocus();
contentView.addView(mView, 0, 0);
mImm = (InputMethodManager) mView.getContext().getSystemService(
Context.INPUT_METHOD_SERVICE);

正在加载...
取消
保存