I am working in andorid. I want to create a layout like this:-

When i rotate my android device then it should look like this:-

There must be some padding between these images. Please suggest me how can i implement this. Which type of layout i should use for this.
I am waiting for your suggestions. You may send me some links related to this.
Thank you in advance.
Use
GridLayout. This will work fine for orientation change easily. Here I have posted a sample code.You need to remove codes for Text.
Download images which used in this example.