Search code examples
androidstringkotlintranslation

Translation editor android


I am using translation editor, and to use the translation I have created, I use in the xml @string/example_01.

But how can I use it in the activity like this example?

progressDialog.setTitle("@string/PleaseWait")


Solution

  • That's R.string.example_01, while PleaseWait might not work (all lowercase + underscores).

    When writing R. you'll see all kinds of Android resources.