How to set the space left over to be divided equally?
For example, I have a GridView with 2 columns. The full width is 700px, and the column is 200px: how do I specify the xml, so the space left (300px) are divided evenly into 3 pieces?
i.e. 100px | 200px (Column 1) | 100px | 200px (Column 2) | 100px
Set the android:stretchMode
to spacingWidthUniform
.
http://developer.android.com/reference/android/widget/GridView.html#attr_android:stretchMode
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With