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

  • Home
  • SEARCH
  • 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 8122085
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T05:43:06+00:00 2026-06-06T05:43:06+00:00

I have just started using android, and have about 5 layout files finished. However,

  • 0

I have just started using android, and have about 5 layout files finished. However, I just realized that I have been using @id and @+id interchangeably, but I’m not sure what the exact difference between the two are.

  • 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-06-06T05:43:08+00:00Added an answer on June 6, 2026 at 5:43 am

    You need to use @+id when you are defining your own Id for a View.

    Exactly from docs:

    The at-symbol (@) at the beginning of the string indicates that the
    XML parser should parse and expand the rest of the ID string and
    identify it as an ID resource. The plus-symbol (+) means that this is
    a new resource name that must be created and added to our resources
    (in the R.java file). There are a number of other ID resources that
    are offered by the Android framework. When referencing an Android
    resource ID, you do not need the plus-symbol, but must add the android
    package namespace.

    Here is a practical example:

    <Button 
       android:id="@+id/start"
       android:layout_width="wrap_content"
       android:layout_height="wrap_content"
    />
    
    <Button 
       android:id="@+id/check"
       android:layout_width="wrap_content"
       android:layout_height="wrap_content"
       android:layout_below="@id/start"
    />
    

    So here, you created two IDs, start and check. Then, in your application you are able to connect to them with findViewById(R.id.start).

    And this android:layout_below="@id/start" refer to existing id.start and means that your Button with id check will be positioned below Button with id start.

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

Sidebar

Related Questions

I have just started learning to write apps for android using Eclipse. Where can
I have just started using Rhino mocks and I am having difficulty doing that.
I recently started using android actionbars and contextual action bars (CAB). I have just
I have started using the Android StrictMode and find that it would be great
I have just started using Android. I have tried an apps with orientation change.
I have just started using services in Android and I have a made a
we have just started using a git account of our Django website project so
I have just started using RSpec and I copied the very simple test on
I have just started using flexigrid and wanted to use the resource string to
i have just started using Moq ver (3.1) and i have read blogs and

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.