I have a Gridview with odd number of items with two columns. The items are placed as:
Item 1 - Item 2
Item 3 - Item 4
Item 5 - Item 6
Item 7
i want the last Item 7 should be in center like this:
Item 1 - Item 2
Item 3 - Item 4
Item 5 - Item 6
Item 7
please help me , how to do this through Java code?
You can't get this with default gridView.
There is work around you can use:
Try three column and make middle one invisible
OR
Add a separate view below of the grid view.
OR
Create your own gridview implementation
I think these work for you.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With