Fixed internationalizing showing amount
This commit is contained in:
parent
89bba4bc11
commit
717e8f98f3
|
@ -45,7 +45,7 @@ open class AccountTransactionAdapter
|
|||
viewHolder.txtvwUsage2.visibility = View.GONE // TODO
|
||||
viewHolder.txtvwUsage2.text = "" // TODO
|
||||
|
||||
viewHolder.txtvwAmount.text = item.amount.toString()
|
||||
viewHolder.txtvwAmount.text = String.format("%.02f", item.amount)
|
||||
viewHolder.txtvwAmount.setTextColorToColorResource(if (item.amount >= BigDecimal.ZERO) R.color.positiveAmount else R.color.negativeAmount)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue