Nicolai
12/12/2023, 10:51 AMNicolai
12/12/2023, 10:51 AM@Composable
fun PTable() {
    Row(
        modifier = Modifier
            .padding(16.dp)
            .fillMaxWidth()
            .border(
                width = 0.2.dp,
                color = Color.White,
                shape = RoundedCornerShape(8.dp)
            )
    ) {
        for (i in 0..3) {
            Column(
                modifier = Modifier
                    .weight(1f)
                    .background(Color.White)
            ) {
                for (j in 0..3) {
                    Box(
                        modifier = Modifier
                            .background(Color.Black)
                    ) {
                        Text(
                            text = "Row $j, Column $i",
                            color = Color.White,
                            modifier = Modifier.align(Alignment.Center)
                                .padding(12.dp)
                        )
                    }
                }
            }
        }
    }
}Andreas Dybdahl
12/12/2023, 11:02 AMNicolai
12/12/2023, 11:32 AMAndreas Dybdahl
12/12/2023, 11:35 AMNicolai
12/12/2023, 12:36 PM