How to add a new object to Layout by Java? Android
<p>For example, I have an ImageView got by this:</p>

<pre><code>public ImageView get_image_by_name(String name)
{
    int image_id = getResources().getIdentifier(name , "drawable", getPackageName());
    return (ImageView)findViewById(image_id);
}
</code></pre>

<p>Not sure it works at all.</p>

<p>How shall I add it to layout?</p>
