Open mrwilliams opened 9 months ago
URL of codelab:
https://developer.android.com/codelabs/basic-android-kotlin-compose-load-images?continue=https%3A%2F%2Fdeveloper.android.com%2Fcourses%2Fpathways%2Fandroid-basics-compose-unit-5-pathway-2%23codelab-https%3A%2F%2Fdeveloper.android.com%2Fcodelabs%2Fbasic-android-kotlin-compose-load-images#3
Specify the language of the codelab if it is not English: In which task and step of the codelab can this issue be found?
Describe the problem
The text below states that the min size will be 128.dp in the code but shows a min size of 150.dp in the example:
The following example code displays items in a grid, using GridCells.Adaptive to set each column to be at least 128.dp wide:
// Sample code - No need to copy over
@Composable fun PhotoGrid(photos: List) { LazyVerticalGrid( columns = GridCells.Adaptive(minSize = 150.dp) ) { items(photos) { photo -> PhotoItem(photo) } } }
Steps to reproduce?
Versions Android Studio version: API version of the emulator:
Additional information Include screenshots if they would be useful in clarifying the problem.
URL of codelab:
https://developer.android.com/codelabs/basic-android-kotlin-compose-load-images?continue=https%3A%2F%2Fdeveloper.android.com%2Fcourses%2Fpathways%2Fandroid-basics-compose-unit-5-pathway-2%23codelab-https%3A%2F%2Fdeveloper.android.com%2Fcodelabs%2Fbasic-android-kotlin-compose-load-images#3
Specify the language of the codelab if it is not English: In which task and step of the codelab can this issue be found?
Describe the problem
The text below states that the min size will be 128.dp in the code but shows a min size of 150.dp in the example:
The following example code displays items in a grid, using GridCells.Adaptive to set each column to be at least 128.dp wide:
// Sample code - No need to copy over
@Composable fun PhotoGrid(photos: List) {
LazyVerticalGrid(
columns = GridCells.Adaptive(minSize = 150.dp)
) {
items(photos) { photo ->
PhotoItem(photo)
}
}
}
Steps to reproduce?
Versions Android Studio version: API version of the emulator:
Additional information Include screenshots if they would be useful in clarifying the problem.