Android Hexagon Grid

前端 未结 2 1441
感情败类
感情败类 2021-02-06 07:15

I need to develop an app in which buttons are hexagons and all of them are placed next to each other creating a grid. Given my little experience in Android, I wonder if GridView

2条回答
  •  醉酒成梦
    2021-02-06 07:44

    You can always work with it like if it was a normal grid. But instead of drawing a square, you draw an hexagon.

    http://img811.imageshack.us/img811/9229/uyje.png

    But then, you move the odd lines half the width of the hexagon in a way that they will fit with the pair lines.

    http://img822.imageshack.us/img822/2298/e5cq.png

提交回复
热议问题