Getting Imageview added programmattically
<p>I’m trying to move along the screen an ImageView that was added programmatically. To do so </p>

<p>I’m searching its id through getIdentifier. Should this work? Code bellow:</p>

<pre><code>int id = this.getResources().getIdentifier("lemon1", "drawable", this.getPackageName());
ImageView image = (ImageView)findViewById(id);
RelativeLayout.LayoutParams pos =   new RelativeLayout.LayoutParams(RelativeLayout.LayoutParams.WRAP_CONTENT, RelativeLayout.LayoutParams.WRAP_CONTENT);
pos.setMargins(0, 100, 0, 0);
image.setLayoutParams(pos);
</code></pre>

<p>Any clue how should I proceed to achieve what I’m intending to do?</p>

<p>See you,</p>
