Jetpack Compose Modifier
In this tutorial ( by Suraj Maity), we will learn about modifiers in Android Jetpack compose. This feature will help us to build some amazing UI easily. If you know Kotlin, it will be easy for you to build this kind of layout. 1. How to use the modifier to set the background, width, and fillMaxHeight? code: class MainActivity : ComponentActivity() { override fun onCreate (savedInstanceState: Bundle?) { super .onCreate(savedInstanceState) setContent { Column ( modifier = Modifier . background (Color. Yellow ) . fillMaxHeight ( 0.5f ) . width ( 900 . dp ) , horizontalAlignment = Alignment. CenterHorizontally , verticalArrangement = Arrangement. Center ) { Text ( text = "Hey Coders!" ) Text ( text = "Get.. Set.. CODE ->>>>>>>>>>>" ) } ...