It will be ExpandableListView, approximately 4x4. The layout of each of its rows is a widget consisting of 12 horizontally arranged squares, each of which is colored in a certain color. By clicking on the outer row, some of the squares will change color.
How is it easier to do - ListView / RecyclerView / CustomView / CustomLayout?
|

View. You can add them by program loop, for example. Because they are all visible at the same time, there is no point in the ListView / RecyclerView - Vladyslav Matviienko