Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android emulator : insert negative number?

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.

like image 847
tioschi Avatar asked Feb 03 '12 18:02

tioschi


1 Answers

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".

like image 120
Yellos Avatar answered Sep 30 '22 09:09

Yellos