52

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

Steven Byle
  • 12,889
  • 4
  • 42
  • 57
narancs
  • 5,152
  • 4
  • 37
  • 59

1 Answers1

141

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

myTextView.setText ( "78" + (char) 0x00B0 );
Ryan Conrad
  • 6,810
  • 2
  • 35
  • 36