Try using NumberFormat.getCurrencyInstance() to format your string before you put it into a TextView.
Something like:
NumberFormat currency = NumberFormat.getCurrencyInstance();
myTextView.setText(currency.format(dollars));
Edit - There is no inputType for currency that I could find in the docs. I imagine this is because there are some currencies that don't follow the same rule for decimal places, such as the Japanese Yen.
As LeffelMania mentioned, you can correct user input by using the above code with a TextWatcher
that is set on your EditText
.