For an Android app with a custom design, I open the keyboard manually, as it has no input to focus on.
I open it using:
InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE); imm.toggleSoftInput (InputMethodManager.SHOW_FORCED, InputMethodManager.HIDE_IMPLICIT_ONLY);
I would like to set the keyboard as InputType.TYPE_CLASS_NUMBER but cannot find documentation on how to do this.
Thanks in advance!
source share