title: Is it possible to load resources using Strings in Android?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/8668093/android-dynamic-string-resources">Android dynamic String Resources</a>  </p>
  </blockquote>
  
  
  
  <p>I have the following:</p>
  
  <pre><code>TextView text = (TextView)vi.findViewById(R.id.text);
  TextView txtSub = (TextView)vi.findViewById(R.id.txtSub);
  TextView txtA = (TextView)vi.findViewById(R.id.txtA);
  TextView txtB = (TextView)vi.findViewById(R.id.txtB);
  </code></pre>
  
  <p>Is it possible to access these using a String instead (this just pseudocode)?</p>
  
  <pre><code>String resourceName = "text";
  TextView text = (TextView)vi.findViewById(R.id. + resourceName);
  </code></pre>