Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p><a href="http://developer.android.com/reference/android/view/View.html" rel="nofollow noreferrer">IDs and Tags</a></p> <p><strong>IDs</strong></p> <blockquote> <p>Views may have an integer id associated with them. These ids are typically assigned in the layout XML files, and are used to find specific views within the view tree. A common pattern is to:</p> <p>Define a Button in the layout file and assign it a unique ID.</p> <pre><code>&lt;Button android:id="@+id/my_button" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/my_button_text"/&gt; </code></pre> <p>From the onCreate method of an Activity, find the Button</p> <pre><code>Button myButton = (Button) findViewById(R.id.my_button); </code></pre> <p>View IDs need not be unique throughout the tree, but it is good practice to ensure that they are at least unique within the part of the tree you are searching.</p> </blockquote> <p><strong>Tags</strong></p> <blockquote> <p>Unlike IDs, tags are not used to identify views. Tags are essentially an extra piece of information that can be associated with a view. They are most often used as a convenience to store data related to views in the views themselves rather than by putting them in a separate structure.</p> <p>Tags may be specified with character sequence values in layout XML as either a single tag using the android:tag attribute or multiple tags using the child element:</p> <pre><code> &lt;View ... android:tag="@string/mytag_value" /&gt; &lt;View ...&gt; &lt;tag android:id="@+id/mytag" android:value="@string/mytag_value" /&gt; &lt;/View&gt; </code></pre> <p>Tags may also be specified with arbitrary objects from code using <code>setTag(Object)</code> or <code>setTag(int, Object)</code>.</p> </blockquote>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload