Degrees symbol (as in Degrees Celsius/Fahrenheit) in a TextView

后端 未结 6 1852
孤城傲影
孤城傲影 2020-12-13 08:19

Is there a way to include the small circular degrees symbol to a TextView? This would be for temperature readings, as in degrees Celsius or Fahrenheit. I\'m wondering if any

6条回答
  •  悲哀的现实
    2020-12-13 08:57

    If you need only the degree (o) circle symbol you can copy below code.

    char tmp = 0x00B0;
    temperature.setText("60"+tmp);
    

    Hope it helps :)

提交回复
热议问题