15,000 Jobs Available in:
Java, ASP, C#, PHP, SQL, SAP, MySQL and many more.
- Class Quick -
The moose likes Android and the fly likes what does android:id= Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Mobile » Android
Reply Bookmark "what does android:id="@+id/label mean?" Watch "what does android:id="@+id/label mean?" New topic
Author

what does android:id="@+id/label mean?

Irtiza Ali
Greenhorn

Joined: Nov 27, 2009
Posts: 21
Hi all

This is my first question on android. I am learning android very late I know & I have a question.

Can anyone explain me this statement below.

android:id="@+id/label

what does it mean by the plus sign I am going through the tutorial on android.

http://developer.android.com/resources/tutorials/views/hello-relativelayout.html

There is no explanation of this & I was hoping if someone can explain it to me.

Thanks

Irtiza
Monu Tripathi
Rancher

Joined: Oct 12, 2008
Posts: 1355

Can anyone explain me this statement below.

android:id="@+id/label

what does it mean by the plus sign I am going through the tutorial on android.


+id/label means that your resource will have an id value = label and that label belongs to your application's name space.
There are many resources bundled with android.jar file and when referring to these resources you would say android:id = "@android:id/list" which means your resource will have an id value = list and that this value belongs to android name space.

Refer this.


[List of FAQs] | [Android FAQ] | [My Blog]
Irtiza Ali
Greenhorn

Joined: Nov 27, 2009
Posts: 21
Thanks

Now I understand. + sign only means when creating a variable or ID. Else when you use it you mention without the + sign.

Regards

Irtiza
 
 
subject: what does android:id="@+id/label mean?
 
Two Laptop Bag