title: How to set integer tag to a widget in xml layout file?
body: <p>I have simple layout, but I can only set string tag. How to set integer tag?</p>
  
  <pre><code>&lt;ImageView
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:tag="1"
    android:src="@drawable/image" /&gt;
  </code></pre>
  
  <hr>
  
  <p>UPDATE</p>
  
  <p>I found out how to set Integer tags in xml layout. We need to specify an integer variable in any xml resource file. That should look like that:</p>
  
  <p>res/values/value.xml:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;resources&gt;
  &lt;integer name="int1"&gt;15&lt;/integer&gt;
  &lt;integer name="int2"&gt;1&lt;/integer&gt;
  &lt;/resources&gt;
  </code></pre>
  
  <p>And now we are free to use "@integer/int1" or "@integer/int2" as tags for our xml widgets, for example:</p>
  
  <pre><code>&lt;ImageView
  android:layout_width="wrap_content"
  android:layout_height="wrap_content"
  android:tag="@integer/int2"
  android:src="@drawable/image" /&gt;
  </code></pre>
  
  <p>However, in my case I preferred to set tag programmatically :)</p>