Reputation: 3
How can I set the percentage symbol to a TextView with one decimal point in Android? I have tried using the unicode symbol but its not working.
textES.setText(String.format("%.1f \u0025",percentage));
Upvotes: 0
Views: 1782
Reputation: 2609
Have you tried this.
textES.setText(String.format("%.1f",percentage) + "%");
Upvotes: 1