Bonjour
J'aimerais mettre une ressource strings dans une variable genre...
String textWelcome = string.textWelcomeBack;
le string.textWelcomeBack est un int... l'id
j'ai essayer avec
String textWelcome = String.ValueOf(string.textWelcomeBack);
la ca donne encore juste son id
Ce que je comprend pas c'est que sur un bouton.setText ca marche
buttonPlay.setText(string.textButtonPlay_new);
Mais quand j'essaye dans un TextView ca me donne 2123443556 mon nom
1 2 3
|
String playerName = "mon nom"
textNews.setText(string.textWelcomeBack + playerName); |
Quelqun peut m'aider svp... Je veux afficher le texte pas l'ID
Merci
Partager