I am developing and financial android app with 6 languages like {Engish, Hindi,Greek, Russian, French, Spanish}. I have a textView with a double value and i want to give the user the option to select from a spinner the currency format pattern of his choice. I want to format the double value of textView with the pattern from the spinner. I dont know where to start!
formatter = NumberFormat.getNumberInstance(Locale.UK) as DecimalFormat
formatter.maximumFractionDigits = 2
formatter.minimumFractionDigits = 0
formatter.applyPattern("#,###,###.##")
Aucun commentaire:
Enregistrer un commentaire