I don't think that my answer will be enough for you. Because of that I didn't answer before.
I do not think it is a grid view. From my point of view it is an image that contains all images from the folder. Let's say that screen size is 480x320, so you decide to show the images from the folder in the same proportion. For example 48x32. So you take each image from the folder, scale and copy it to the big image into the 0 position - first rectangle in the first line. Then you take the second image, scale it and copy to the second rectangle of the first line. And so on. The result image you show on the screen.
I really do not want to make a code for it.