I have an editText, I input value is $ 19000. But I want display in the editText is $ 19.000.
How can I do this ? thank all.
I have an editText, I input value is $ 19000. But I want display in the editText is $ 19.000.
How can I do this ? thank all.
Try DecimalFormat class
myFormatter = new DecimalFormat("###,###.###");
editText.setText(myFormatter.format(value));
For more info about format patterns you could visit https://docs.oracle.com/javase/tutorial/i18n/format/decimalFormat.html