search

Home  >  Q&A  >  body text

android 如何实现一个有网格界面的布局,且每个网格可点击

如图,我想实现一个有网格的界面,而且每个格子都可以点击。

我尝试放一个白色的按钮在里面,但是有很淡的阴影不是很美观。。求指导

ringa_leeringa_lee2810 days ago722

reply all(3)I'll reply

  • 高洛峰

    高洛峰2017-04-17 15:22:17

    There is such a layout method TableLayout in Android. It is very simple to click. Add an id to each control in the grid, then initialize the control and set the click event

    reply
    0
  • 迷茫

    迷茫2017-04-17 15:22:17

    tablelayout, or custom view, drawn with canvas, the latter is more difficult.

    reply
    0
  • 巴扎黑

    巴扎黑2017-04-17 15:22:17

    gridview, watch the video and learn by yourself so you won’t ask such questions

    reply
    0
  • Cancelreply