How to create imageviews in android dynamically based on a result of a search in the database? For example, I have a product that will always have an image. But it may have one or two extra images. How do I create an imageview if the result of the extra images is true?