浏览代码

Merge pull request #126 from UnityTech/textselection

fix keyboard show bug on sdk28
/main
GitHub 6 年前
当前提交
c34212e3
共有 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);

正在加载...
取消
保存