Source set: Android
public sealed class GridCells
Defines the number of columns of the GridView.
Members
Fixed
Source set: Android
public class Fixed(public val count: Int) : GridCells()
Defines a fixed number of columns, limited to 1 through 5.
For example, LazyVerticalGrid Fixed(3) would mean that there are 3 columns 1/3 of the parent wide.
Parameters
| count | number of columns in LazyVerticalGrid |
Functions
equals
Source set: Android
override fun equals(other: Any?): Boolean
hashCode
Source set: Android
override fun hashCode(): Int
Adaptive
Source set: Android
public class Adaptive(public val minSize: Dp) : GridCells()
Defines a grid with as many columns as possible on the condition that every cell has at least minSize space and all extra space distributed evenly.
For example, for the vertical LazyVerticalGrid Adaptive(20.dp) would mean that there will be as many columns as possible and every column will be at least 20.dp and all the columns will have equal width. If the screen is 88.dp wide then there will be 4 columns 22.dp each.
Parameters
| minSize | fixed width of each column in LazyVerticalGrid |
Functions
equals
Source set: Android
override fun equals(other: Any?): Boolean
hashCode
Source set: Android
override fun hashCode(): Int