TextView中的百分比符号带一位小数
Percentage symbol in TextView with one decimal point
如何在 Android 中将百分比符号设置为带一位小数的 TextView?
我试过使用 unicode 符号,但它不起作用。
textES.setText(String.format("%.1f \u0025",percentage));
你试过了吗
textES.setText(String.format("%.1f",percentage) + "%");
如何在 Android 中将百分比符号设置为带一位小数的 TextView? 我试过使用 unicode 符号,但它不起作用。
textES.setText(String.format("%.1f \u0025",percentage));
你试过了吗
textES.setText(String.format("%.1f",percentage) + "%");