GridLayout (not GridView) how to stretch all children evenly

后端 未结 20 2202
独厮守ぢ
独厮守ぢ 2020-11-22 09:35

I want to have a 2x2 grid with a buttons inside. This is only ICS so I am trying to use the new GridLayout given.

Here\'s the XML of my layout:

 <         


        
20条回答
  •  佛祖请我去吃肉
    2020-11-22 10:29

    Appcompat21 GridLayout has the column and row weights which can be used like below to evenly create each grid item in the gridlayout like the image above.

    
    

提交回复
热议问题