解决bugjava.util.IllegalFormatConversionException: f != java.lang.Integer

解决方法很简单,乘以1.00就可以了

 tvBalance.text = "钱包余额:${ Formatter().format("%.2f",price*1.00)}元"

猜你喜欢

转载自blog.csdn.net/qczg_wxg/article/details/130211103