How to dynamically add components
<p>I have to display a grid of pictures taken from the database. Depending on the screen size of the user, I want to show more or less pictures.</p>

<p>1) How to change the number of pictures shown dynamically according to the number of pics from the database?</p>

<p>1a) Which layout would be adequate?</p>

<p>2) If there are more pictures than that can fit on a single screen, obviously it has to be scrolled. How do I define a page wise scrolling instead of scrolling little by little, meaning after each scrolling, next page will have all new members (just like we scroll Applications in Android)</p>

<p>At the moment, I have a TabHost layout for the main Activity and a LinearLayout for the grid type display activity.</p>

<p>I am using API version 10, so GridLayout is not available.</p>

<p>Any suggestions would be very helpful. Thanks in advance.</p>
