I have a gridview in which I need to display images. I applied below logic:
If 1 Photo : 1 row and 1 col and full width image.
If 2 Photos : 1 row and 2 cols with equal width of both images (half of screen width)
If 3 photos: 2 rows. 1st row will be having 1 col (1 image with full width)
and 2nd row will be having 2 images with equal width (half of screen width)
If 4 or more photos : width will be half for each column.
I managed for the remaining cases, the only problem is to set for case 3, when I have 3 photos. I want 1 full-width photograph in 2 ordinary ans 2 equal half-width photographs in the 2nd row, but my code gives me half the photograph with equal width in the 1st row and 1 half the width of the photograph in the 2nd row.
I only need to use Gridview, please tell me if this is possible with Gridview. I already asked this question, but did not receive an answer. Please help me if you have an idea here.
Thank you very much.
I want to have a layout below:
