Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Differences between android:text="@string" and android:text="..."

Tags:

android

Maybe this is a silly question but is there a difference,besides the obvious,between android:text="@string/...." and android:text="..."?.I'm thinking that maybe the text that appears on the screen has the option for styling when using @string.Which one is best to use in general or it really doesn't matter?

like image 700
Stefan Avatar asked Dec 09 '11 20:12

Stefan


1 Answers

When you're using android:text="@string/" the app is going to find the value of the string in the ressources file, with this technique you can manage multilanguage app, with a "strings"'s file by language.

like image 116
Christophe Debove Avatar answered Oct 25 '22 12:10

Christophe Debove