How to generate the number of imageviews dynamically and how to set them to imageview in android?
<p>I am working on android applications. I have to display a text and along with that images. I am getting text and images from database. The database table contains
two columns.</p>

<p>Column1            Column2<br>
text data          img1.png,img2.png,img3.png</p>

<p>text data2        img1.png</p>

<h2>text data3        img1.png,img2.png</h2>

<h2>----</h2>

<hr>

<p>Now i am getting the Column1 data in one str1 and column2 data in another str2.
I stored the str2 data in str3 array by spltting str2 with commas.</p>

<p>i.e str3 = str2.split(","); 
So str3 contains all the image names. </p>

<p>Now my requirement is based on the size of the str3 I need to generate those many imageviews.
For example str3 size is 2 so i have to set two image views dynamically and need to set the image. How can I do that?</p>

<p>Please help me with this task...
Thanks in advance</p>
