Android将度数符号设置为Textview

2022-01-09 00:00:00 symbols android java textview

如何在 Android 中将度数符号设置为 TextView?

How can I set the degree symbol to a TextView in Android?

推荐答案

它的 unicode 值是 U+00B0 所以你可以这样做:

The unicode value for it is U+00B0 so you could do the following:

myTextView.setText ( "78" + (char) 0x00B0 );

相关文章