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
Post a Comment