I'm using a GridView
to display a bunch of views which are essentially LinearLayouts
. I want the LinearLayouts
to all be square, but I also want them to be dynamically sized--that is, there are two columns and I want the LinearLayouts
to stretch depending on the size of the screen but remain square. Is there a way to do this through the xml
layout or do I have to set the heights and widths programmatically?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…