EditText with Currency format

后端 未结 2 958
死守一世寂寞
死守一世寂寞 2020-12-11 02:20

I have a EditText in which I want to display currency:

    input.setInputType(InputType.TYPE_CLASS_NUMBER);
    input.addTextChangedListener(new CurrencyText         


        
2条回答
  •  天命终不由人
    2020-12-11 02:51

    Try add this property in you xml declaration for you edit text:

    android:inputType="numberDecimal" or number or signed number

    See more info about android:inputType here.

提交回复
热议问题