How to format the input of EditText when typing with thousands separators (,) in Android?

前端 未结 3 1063
春和景丽
春和景丽 2021-02-04 11:54

I\'ve an edittext , it only gets numeric without decimal numbers.

android:inputType=\"number\"

I want to separate thousands while

3条回答
  •  面向向阳花
    2021-02-04 12:20

    add this into your app's Gradle compile 'com.aldoapps:autoformatedittext:0.9.3' in XML xmlns:app="http://schemas.android.com/apk/res-auto"

    
    

    This lib automatically add (,) (.)

提交回复
热议问题