Ogen
Ogen

Reputation: 6709

Android: Using grid view to emulate a chess board

I am trying to use a grid view to represent an 8x8 chess board. I want the columns to span across the whole screen and all the cells to be perfect squares. I've read some tutorials but they don't really cater to this situation. Any help would be appreciated.

Upvotes: 0

Views: 1764

Answers (1)

Andrew Flynn
Andrew Flynn

Reputation: 1516

I think GridLayout is what you're looking for. It wasn't added until ICS though, so you may want to look into the support added in the v7 support library

Blogpost describing GridLayouts uses here: http://android-developers.blogspot.com/2011/11/new-layout-widgets-space-and-gridlayout.html

Upvotes: 1

Related Questions