🎨 UI with MAUI
MAUI vs Jetpack Compose
Choosing the right UI toolkit; cross-platform vs native tradeoffs.

Two UI Paradigms

When targeting Android in VS 2026, you choose between .NET MAUI and Jetpack Compose. Understanding the tradeoffs helps you pick the right tool for your project.

.NET MAUI — Cross-Platform

Jetpack Compose — Android Native

💡
This course focuses on .NET MAUI. If you plan to build Android-only apps after this course, Jetpack Compose is the natural next step.

A Quick Compose Taste

kotlin
@Composable
fun GreetingCard(name: String) {
    Card(modifier = Modifier.padding(16.dp)) {
        Column(modifier = Modifier.padding(16.dp)) {
            Text(text = "Hello, $name!",
                 style = MaterialTheme.typography.headlineMedium)
            Button(onClick = {}) { Text("Tap") }
        }
    }
}

Key Takeaways

.NET MAUI targets Android, iOS, Windows, and macOS from one codebase
Jetpack Compose is Android-only but delivers the most native Android experience
Both are fully supported in Visual Studio 2026
Choose MAUI for cross-platform; Compose for Android-first native feel
Lesson 11 of 30UI with MAUI
← Previous Next Lesson →