MainActivity.kt

// LazyColumn -> LazyRow
// Item Click

class MainActivity : ComponentActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContent {
            DefaultTheme {
                MyLazyRow()
            }
        }
    }
}

@Composable
fun MyLazyRow(){
    val textList = listOf(
        "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"
    )

    LazyRow {

        items(textList) { item ->

            Text(
                text = item,
                fontSize = 100.sp,
                modifier = Modifier.clickable {
                    println("Clicked item : $item")
                }
            )

        }

    }

}

@Preview(showBackground = true)
@Composable
fun GreetingPreview() {
    DefaultTheme {
        MyLazyRow()
    }
}