Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3457586
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T09:52:42+00:00 2026-05-18T09:52:42+00:00

If you are developing Android application, you will encounter such a id naming in

  • 0

If you are developing Android application, you will encounter such a id naming in xml files of view and layouts :

<menu xmlns:android="http://schemas.android.com/apk/res/android">
    <item android:id="@+id/new_game"
          android:icon="@drawable/ic_new_game"
          android:title="@string/new_game" />
    <item android:id="@+id/quit"
          android:icon="@drawable/ic_quit"
          android:title="@string/quit" />
</menu>

and I am really wondering why such naming is applied to ids. It is because of Linux? What kinda meaning this naming —@+id/...–has?

When I am looking at android:icon attribute I can interpret that it means ic_new_game is located under drawable folder and @ means “located at” or I just assume that.

But naming id attributes are kinda different because they also have + sign. Can somebody help me understand this convention?

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T09:52:43+00:00Added an answer on May 18, 2026 at 9:52 am

    It is just a naming convention defined by the Android developers I guess. The + is only used when you want to define a new Id for something. Otherwise you just reference is like @id/....

    The @drawable/... and @string/... just represent a reference to some resources. Where drawable references get created automatically for .png, .jpg, .gif and .xml files residing in one of your drawable directories. The filename of your file will be the identifier.

    The string references get created if there is a XML file containing string tags like this one <string name="some_name">Some Name</string>. The identifier for strings will be what you define as the name argument. In this example it would be @string/some_name.

    Same applies for your layouts. You will be able to access them through @layout/....

    As far as I know it has nothing to do with Linux or at least I don’t know anything in Linux like that.

    An interesting read about this is Accessing Resources on the developer site.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

im developing an Android application for twitter that will sync data coming from the
Developing a heavily XML-based Java-application, I recently encountered an interesting problem on Ubuntu Linux.
I'm developing an Android application that uses a WebView to display the login page
I'm having a go at developing my first android application and have never really
I'm developing an application that will be available from a website (market probably as
I am developing a walkie-talkie application for Android, and would like to know whether
Has anybody had any success with developing for Android platform using Netbeans (5.5+ )
Developing a .NET WinForms application: how can I check if the window is in
When developing a desktop application in .NET, is it possible to not require the
When developing a new web based application which version of html should you aim

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.