I want to make a 2x2 block, mainly like this: https://play.google.com/store/apps/details?id=com.apexappsdmcc.spottheshade&hl=en (not promoting the app and i'm not the maker of the app nor have to do anything with it)

Basically I want to make my app like that one where at first, we've got those 2x2 cube, if you click the shade, you get a 3x3 cube, and so on. I am not trying to copy the app, it's just the part of the app I want to make.

Which control (widget) should work most efficiently? GridView or GridLayout, or some other? Please post XML code (but i'd prefer java code because this is supposed to be changed dynamically).