Just press "-" before entering the number?
If this is not possible, maybe something is wrong with the inputType editText. For example, android:inputType="numberDecimal"does not allow negative numbers. In this case, you need to add: android:inputType="numberDecimal|numberSigned".
source
share