Jetpack Compose — An introduction

Ajinkya Kolkhede
4 min readJun 26, 2020

JetPack Compose is modern toolkit for building native Android UI. This library enables us to develop intuitive user interfaces with less code, more performance and faster development. It is part of Jetpack group of libraries. It uses declarative approach for development of user interfaces. This is not new to us frontend frameworks like flutter, react uses similar approach in slightly different way.

Advantages of using Jetpack Compose

  • Declarative approach — Compose is fully declarative, that means we need to describe UI by calling a series of functions that converts data into a UI. When the data changes, we don’t need to do extra stuffs, the framework automatically recalls these functions, and update view hierarchy.
  • Independant from Android Platform — It is integrated into applications as a library, and unbundled from Android platform releases. This allows Compose to be updated more frequently than the existing legacy UI toolkit.
  • Less code and Fast Development — With xml-based UI we need to write more code, also code grow as complexity of UI increases. As code is spread across the app at different places it causes slowness in development. With compose we can overcome these issues.
  • Backward compatible — It is designed to be backward compatible and to work with…

--

--