views:

145

answers:

1

Hi all! How can I set the degree symbol to an TextView in Android?

+1  A: 

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

myTextView.setText ( "78" + (char) 0x00B0 );
Ryan Conrad
It is not works, but if i do in the followingchar tmp = 0x00B0;myTextView.setText(tmp); will be okay!
Karoly