I’m developing an science app, and I have an EditText in wich I must enter an input numeric value, so the inputType is “number|numberSigned|numberDecimal”, but the problem is when I want input a scientific notation number like “45.6E05”, I can’t input “E” character because of EditText’s InputType.
How can to allow “E” character and only to show a numerical keyboard when the EditText is focused?
There is no way to show the numerical keyboard with an extra letter
Eon it, two ways around this are either make a button that inputsEto your edittext or to use theandroid:digitsattribute like such:Where all the characters in the brackets are the ones that you want the user to be able to input
To make do it using a button, in its
onClickListeneryou just need to put the following codeIn the other hand if you want to insert the character in the position of the cursor then you should try this (taken from here)