oligazar
8/8/2017 - 2:20 PM

String format

Uri.fromFile(File(path))
Uri.parse(path)
 val symbols = DecimalFormatSymbols.getInstance()
        symbols.groupingSeparator = ' '
        val formatter = DecimalFormat("###,###.##", symbols)
        // new DecimalFormat("#.##").format(1.199); //"1.2"

        totalPrice.text = "${formatter.format(order.totalPrice)} "