Jetpack Compose ● Modern UI development toolkit ● Fully built with Kotlin ● Simplifies and accelerates UI development ● Less code ● Intuitive Kotlin APIs ● Powerful API and tools
Jetpack Compose Compose apps are written in the Kotlin programming language. Kotlin is the language that the majority of professional Android developers use to build apps.
Why Jetpack Compose? ● Single language - Kotlin ● Less Code ● Accelerates Development ● UI and operations in same place ● Declarative UI ● Scope for reusable UI components ● Better, testable, debuggable code for UI
XML vs Compose ● Imperative way in View ● Bind Views ● Access properties via getters ● Set properties via setters ● Listen View events via listeners ● Declarative way in Jetpack Compose ● Compose components ● Declarative way ○ Compose component ○ State IN ○ Events OUT