| UI Definition |
XML layouts in res/layout/ |
Kotlin code with composable functions |
| Base Class |
Activity |
ComponentActivity |
| UI Setting Method |
setContentView(R.layout.layout_name) |
setContent { composable() } |
| UI Components |
Views like TextView, Button, etc. |
Composables like Text, Button, etc. |
| State Management |
Manual handling (e.g., onSaveInstanceState) |
Built-in with remember, rememberSaveable |
| Theme Support |
Defined in res/values/styles.xml |
Defined using MaterialTheme composable |
| Navigation |
Intent and Fragment |
NavHost and NavController |