52

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

Steven Byle
  • 13,149
  • 4
  • 45
  • 57
narancs
  • 5,234
  • 4
  • 41
  • 60

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,870
  • 2
  • 36
  • 36