title: How can I assign an ID to a view programmatically?
body: <p>In an XML file, we can assign an ID to a view like <code>android:id="@+id/something"</code> and then call <code>findViewById()</code>, but when creating a view programmatically, how do I assign an ID?</p>
  
  <p>I think <code>setId()</code> is not the same as default assignment. <code>setId()</code> is extra.</p>
  
  <p>Can anybody correct me?</p>