I am making a calculator in android, and I have make a button of dot operator, whenever I am pressing that button, it is not showing dot on screen like it should show 2.4 but it's showing 24 , what can I do???.I have used edit text field for showing result.
Asked
Active
Viewed 252 times
-1
-
1please refer to http://stackoverflow.com/help/how-to-ask – Iamat8 Jan 12 '16 at 15:24
-
[Refer this](http://stackoverflow.com/questions/23154895/android-edittext-show-both-comma-and-dot-as-possible-separator-in-case-of-numbe) – Vinoth Vino Jan 12 '16 at 16:39
1 Answers
1
I think this is what you're looking for...Try the below code
Edt.setInputType(InputType.TYPE_CLASS_NUMBER | InputType.TYPE_NUMBER_FLAG_DECIMAL);
See this link too and refer this question
Hope this helps you..

Community
- 1
- 1

Vinoth Vino
- 9,166
- 3
- 66
- 70