This week's book giveaway is in the Spring forum.
We're giving away four copies of Java Persistence with Spring Data and Hibernate and have Cătălin Tudose on-line!
See this thread for details.
Win a copy of Java Persistence with Spring Data and Hibernate this week in the Spring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Tim Cooke
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Jeanne Boyarsky
Saloon Keepers:
  • Stephan van Hulst
  • Carey Brown
  • Tim Holloway
  • Piet Souris
Bartenders:

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

 
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Rancher
Posts: 1369
1
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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.
 
Irtiza Ali
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
We can walk to school together. And we can both read this tiny ad:
The Low Tech Laboratory Movie Kickstarter is LIVE NOW!
https://www.kickstarter.com/projects/paulwheaton/low-tech
reply
    Bookmark Topic Watch Topic
  • New Topic