title: Android and getting a view with id cast as a string
body: <p>In the Java code of an Android project if you want the reference for a view resource you can do something like:</p>
  
  <pre><code>View addButton = findViewById(R.id.button_0);
  </code></pre>
  
  <p>In the above R.id.button_0 is not a String. Is it possible to dynamically refer to a resource by a string, such as "<code>R.id.button_0</code>"?</p>
  
  <p>I'd like to refer to a button by "<code>R.id.button_%i</code>" where <code>%i</code> is replaced by some valid index.</p>