title: How to set tag on a Button programmatically
body: <p>On the XML I can set my flag on android:tag, but how can I do it pro grammatically?</p>
  
  <pre><code>    &lt;Button
          android:layout_width="match_parent"
          android:layout_height="50dp"
          android:text="Button"
          android:tag="myFlag"/&gt;
  </code></pre>