Passing variable into findViewByID
<p>I have the following setup. In my xml i have a bunch of image views. I am trying to show only one of them depending on the number set in preferences and the day of week. This must be really easy but i can't find out the correct way to pass variable into findViewByID. Here is code snippet:</p>

<pre><code>String groupName = "R.id."+prefs.getString("groupListKey", "&lt;unset&gt;")+"_"+(Calendar.getInstance().get(Calendar.DAY_OF_WEEK));

ImageView image = (ImageView) findViewById(groupName);
</code></pre>
