Use Android Jetpack Compose

Jens Klingenberg
2 min readMay 29, 2019

--

Example Project

Heres my Github Project: https://github.com/Foso/Jetpack-Compose-Playground

What is Jetpack Compose?

Jetpack Compose is an unbundled toolkit designed to simplify UI development. It combines a reactive programming model with the conciseness and ease of use of the Kotlin programming language.

At Google I/O 2019 Google announced a next generation UI Framework:

Core Principles

Concise and Idiomatic Kotlin

Built with the benefits that Kotlin brings — concise, safe, and fully interoperable with Java. Designed to drastically reduce the amount of boilerplate code you have to write, so you can focus on your app code, and help avoid entire classes of errors.

Declarative

Fully declarative for defining UI components, including drawing and creating custom layouts. Simply describe your UI as a set of composable functions, and the framework handles UI optimizations under the hood and automatic updates to the view hierarchy.

Compatible

Compatible with existing views so you can mix and match, and adopt at your own pace with direct access to all of the Android and Jetpack APIs.

Enable Beautiful Apps

Designed with Material Design out of the box and animations from the start, so it’s easy to create beautiful apps that are full of motion.

Accelerate Development

Accelerate development by writing less code and using tools like Apply Changes and live preview.

Links:

https://developer.android.com/jetpack/compose

--

--