i want to show only two decimal places in my edit text, ofc i wanna show currency in edit text but limiting its value to 2 digits after decimal.
I have seen some sol
You just need to assign setKeyListener() to your EditText.
setKeyListener()
EditText
myEditText.setKeyListener(DigitsKeyListener.getInstance(true,true));
Returns a DigitsKeyListener that accepts the digits 0 through 9, plus the minus sign (only at the beginning) and/or decimal point (only one per field) if specified.
DigitsKeyListener