sceneform-android-sdk
sceneform-android-sdk copied to clipboard
EditText as ViewRenderable and Keyboard
Hi,
i have a problem with the keyboard. When I display an EditText and touch it, the keyboard is not shown. I can force the keyboard to display with the following code (see below), but the view does not respond to the input. Any ideas?
val imm = getSystemService(Context.INPUT_METHOD_SERVICE) as InputMethodManager imm.toggleSoftInput(InputMethodManager.SHOW_FORCED,0)
This is a bug, we will look into a fix to make EditText usable.
Great thx
This will be fixed in an upcoming release.
Unfortunately, the fix we had for this caused other problems so we are continuing to investigate this issue.
Is the issue fixed now?
Are you still working on this issue? I think interaction is very important.
I was able to update edit text like this.
Get keyboard on EditText onclick
InputMethodManager imm = (InputMethodManager) getSystemService(getApplicationContext().INPUT_METHOD_SERVICE);
imm.toggleSoftInput(InputMethodManager.SHOW_FORCED,0);
// imm.showSoftInput seems to be not working
Get keyboard press event and update edit text https://developer.android.com/training/keyboard-input/commands.html
@Override
public boolean onKeyUp(int keyCode, KeyEvent event) {
editText.setText(editText.getText().append((char)event.getUnicodeChar()));
return super.onKeyUp(keyCode, event);
}
But with above method you will have to handle clear, backspace and other events
I has the same problem in my app, is this issue fixed now?
Also clicking an input field in a WebView does not cause the keyboard to appear :-(