Search code examples
androidandroid-edittext

How to set only integer numbers for EditText android (without comma)


How to set only Integer numbers for EditText ? (I would like to avoid to user to put comma)


Solution

  • Try below attribute in your xml:

    android:inputType="numberSigned"