Input Input Type android InputMethodManager

Can I get the current type of input (text or numbers) from the keyboard? Or is there an event that fires when the input type changes? I need to set the type of input on the screen depending on what type of input was when the user left this screen. Thanks

+4
source share
1 answer
editText.getInputType(); 

This method returns the input type for the EditTextBox in integer format.

you can get all InputTyp using the InputType interface like this way

 InputType.TYPE_CLASS_NUMBER; InputType.TYPE_CLASS_TEXT; 
+2
source

All Articles