I would like to change the text of a TextView
component to another text, that I have already created in strings.xml
. When the app starts, the text shown is stored in strings.xml
, under the name "help0". I would like to set this to the string under the name "help00" programmatically, by placing another "0" at the and of the name. So far I have written this code :
String help = "0";
help = help + "0";
final TextView help = (TextView) findViewById(R.id.help);
help.setText("@string/help" + help);
However, when I run the app the text changes to "@string/help00", instead of the text I have stored under help00 in strings.xml
.
How could I fix this problem?