I suppose it must be easy but how do I insert a negative number in an EditText?
I am running the emulator on a Mac.
Thank you.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Just press ‘-‘ before you enter the number?
If that’s not possible, there is probably something wrong with the inputType of the editText.
For example,
android:inputType="numberDecimal"doesn’t allow negative numbers. In that case you should add:android:inputType="numberDecimal|numberSigned".