[android] how to add comma in the EditText. android, how to add comma in the EditText. 1. xml 상 EditText 에 , 를 입력할 수 있게 한다. ( android:inputType = "numberDecimal" 로 가정 )"0123456789.," 2. EditText 에 TextWatcher 추가mEditText.addTextChangedListener( mEditTextTextWatcher ); private TextWatcher mTextTextWatcher = new TextWatcher() {@Overridepublic void onTextChanged(CharSequence s, int start, int before, int count) { }@Overridepublic void before.. 2013. 12. 30. 반응형 이전 1 다음