When using setText, if I specify to put @ string / myText, then I’m not setting the content of this resource, but the phrase "@ string / myText" itself. And how to set the text of the contents of a resource?

    2 answers 2

    instead of "@ string / myText" write getResources (). getString (R.string.myText);

    similar for other resources

      textView.setText(R.string.myText);