Stay organized with collections
Save and categorize content based on your preferences.
@RequiresApi(value = 31)
class GridCells.Adaptive : 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.
Summary
Public properties |
Dp |
fixed width of each column in LazyVerticalGrid
|
Public constructors
Adaptive(minSize: Dp)
Parameters |
minSize: Dp |
fixed width of each column in LazyVerticalGrid
|
Public properties
val minSize: Dp
fixed width of each column in LazyVerticalGrid
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2024-12-18 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-12-18 UTC."],[],[]]