MainActivity.kt

class MainActivity : ComponentActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContent {
            // Default -> DefaultTheme
            // Hello -> HelloTheme
            // Thanks -> ThanksTheme
            DefaultTheme {
                // A surface container using the 'background' color from the theme
                Surface(
                    modifier = Modifier.fillMaxSize(),
                    color = MaterialTheme.colorScheme.background
                ) {
                    MyFirst()
                }
            }
        }
    }
}

@Composable
fun MyFirst(){

//    Column() {
//        Text(text = "Hello")
//
//        Button(onClick = { /*TODO*/ }) {
//            Text(text = "asdfasdfasf")
//        }
//    }

    Row() {
        Text(
            text = "Hello",
            fontSize = 50.sp
        )

        Button(onClick = { /*TODO*/ },
            modifier = Modifier.padding(20.dp)
        ) {
            Text(text = "asdfasdfasf")
        }
    }

}

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

// Build Refresh