Android TextView does not display audio recording. "Symbol

I am working on an application that displays text and plays audio from an API. It should also display copyright information for this text and sound; this information is extracted from the same API.

Many sound copyrights contain the symbol “℗”, also known as the sound recording symbol:

http://en.wikipedia.org/wiki/Sound_recording_copyright_symbol

However, when I take the text obtained from the API and place it in the TextView, the “℗” symbol is not displayed. The regular copyright symbol (©) is displayed just fine.

Has anyone encountered anything similar before? Is there a workaround?

+4
source share
1 answer

You can try this way. such as

first create a string value in res / values ​​/string.xml. eg

<string name="copyright">\u2117 2011 copyright</string>

then you get it from your activity class this way. such as

 TextView tvHeader = (TextView) findViewById(R.id.tvHeader);
            tvHeader.setText(getResources().getString(
                    R.string.copyright));
0
source

Source: https://habr.com/ru/post/1537101/


All Articles