From 1b219dcb32e86272c020e98a9372ae4b77d2e623 Mon Sep 17 00:00:00 2001 From: kosenda Date: Sat, 9 Dec 2023 22:50:44 +0900 Subject: [PATCH] feature: add sample2 --- app/src/main/java/ksnd/autosizetable/SampleScreen.kt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/ksnd/autosizetable/SampleScreen.kt b/app/src/main/java/ksnd/autosizetable/SampleScreen.kt index 2010661..bc8e07f 100644 --- a/app/src/main/java/ksnd/autosizetable/SampleScreen.kt +++ b/app/src/main/java/ksnd/autosizetable/SampleScreen.kt @@ -88,8 +88,8 @@ fun SampleScreen() { content = List(NUM_OF_ITEMS_IN_EACH_COLUMN) { columnId -> List(NUM_OF_ITEMS_IN_EACH_ROW) { rowId -> { - when (rowId) { - 0 -> Column { + if (rowId == 0 && columnId % 2 == 0) { + Column { repeat(numMailColumnIcons) { Row { repeat(numMailRowIcons) { @@ -104,8 +104,8 @@ fun SampleScreen() { } } } - - else -> Text( + } else { + Text( text = "rowId: $rowId \ncolumnId: $columnId", modifier = Modifier.padding(8.dp), fontWeight = if (columnId < type[typeIndex].first) {