Lazy Images in TableLayout which is created dynamically
<p>I am using web service in my application and somewhere need to display images in a TableLayout along with some text. But the problem is that there are number of images.  I am populating my TableLayout dynamically </p>

<p>how to lazy load images?</p>

<pre><code>ImageView iv1 = new ImageView(NextActivity.this);
iv1.setLayoutParams(new LayoutParams(LayoutParams.WRAP_CONTENT,
LayoutParams.WRAP_CONTENT));iv1.setScaleType(ImageView.ScaleType.FIT_XY);iv1.getLayoutParams().height = 120;iv1.getLayoutParams().width = 150;              iv1.setBackgroundResource(R.drawable.categoryimageborder);iv1.setImageDrawable(drawableArray[i]);tr.addView(iv1);`
</code></pre>
