title: Android XML: Set Resource id as View's tag in XML layout file
body: <p>I want to specify a relationship between two views in my Android XML layout file.  Here is what I want to do:</p>
  
  <pre><code> &lt;View
        android:id="@+id/pathview"
        android:layout_width="match_parent"
        android:layout_height="match_parent" /&gt;
    ...
    &lt;CheckBox
        android:id="@+id/viewPath"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:checked="true"
        android:paddingRight="7dp"
        android:shadowColor="#000000"
        android:shadowDx="0.5"
        android:shadowDy="0.5"
        android:shadowRadius="0.5"
        android:tag="@id/pathview"
        android:text="Paths" /&gt;
  </code></pre>
  
  <p>However, the XML parser is treating the tag as a String and not interpreting it as an integer (<code>System.out.println((String) [viewPath].getTag());</code> prints "false").  Is there any way I can assign the resource id to the View's tag?</p>