Why do we use @ and + symbol for creating id of a widget in Android? -


what exact meaning of using @ , + symbol?

the at-symbol (@) @ beginning of string indicates xml parser should parse , expand rest of id string , identify id resource. plus-symbol (+) means new resource name must created , added our resources (in r.java file)

source: http://developer.android.com/guide/topics/ui/declaring-layout.html#id


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -