Editing Translations:Android Training/Building a Simple User Interface/15/en (section)

    Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
    Message definition (Android Training/Building a Simple User Interface)
    === [http://developer.android.com/reference/android/view/View.html#attr_android:id <code>android:id</code>] ===
    This provides a unique identifier for the view, which you can use to reference the object from your app code, such as to read and manipulate the object (you'll see this in the next lesson).
    The at sign (<code>@</code>) is required when you're referring to any resource object from XML. It is followed by the resource type (<code>id</code> in this case), a slash, then the resource name (<code>edit_message</code>).
    The plus sign (<code>+</code>) before the resource type is needed only when you're defining a resource ID for the first time. When you compile the app, the SDK tools use the ID name to create a new resource ID in your project's <code>gen/R.java</code> file that refers to the EditText element. With the resource ID declared once this way, other references to the ID do not need the plus sign. Using the plus sign is necessary only when specifying a new resource ID and not needed for concrete resources such as strings or layouts. See the sidebox for more information about resource objects.
    Please note that all contributions to Android Wiki are considered to be released under the Creative Commons Attribution/Share-Alike Lizenz 3.0 (see DroidWiki:Urheberrechte for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
    You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

    To protect the wiki against automated edit spam, we kindly ask you to solve the following CAPTCHA:

    Cancel Editing help (opens in new window)