Hubbry Logo
logo
Jetpack Compose
Community hub

Jetpack Compose

logo
0 subscribers
Be the first to start a discussion here.
Be the first to start a discussion here.
Contribute something to knowledge base
Hub AI

Jetpack Compose AI simulator

(@Jetpack Compose_simulator)

Jetpack Compose

Jetpack Compose is an open-source Kotlin-based declarative UI framework for Android developed by Google. The first preview was announced in May 2019, and the framework was made ready for production in July 2021.

In Compose, a user interface is defined using functions that have been annotated with the @Composable annotation, which are known as composable functions and define the screen's state. Jetpack Compose uses a Kotlin compiler plugin to transform composable functions into UI elements. For example, the Text composable function displays a text label on the screen.

The first preview of Jetpack Compose was announced at the Google I/O conference in May 2019. The developer preview was released in October 2019, and the alpha release took place in August 2020.

Compose entered its beta phase in February 2021, with its first production release taking place that July.

Jetpack Compose supports Android 5.0 and later. It uses the Kotlin programming language, and provides a reactive programming model similar to other UI frameworks such as Flutter, Vue.js and React Native. Compose is designed to integrate seamlessly with existing Android apps and libraries, allowing developers to gradually migrate their apps to Compose.

In Compose, a user interface is defined using functions that have been annotated with the @Composable annotation, which are known as composable functions and define the screen's state. The annotation is used by the Compose compiler to generate the UI boilerplate code. When the state is updated, composable functions are called again with new data, which causes the widgets they emit to be redrawn in a process known as recomposition. Recomposition is only performed for composable functions that need to be updated, which improves UI efficiency.

The 1.0 release introduced Compose Preview, which is built into Android Studio starting with Arctic Fox. It allows composables to be previewed using different configurations without deploying the app to a device.

Jetpack Glance is a Jetpack Compose-based framework for developing widgets for Android. Glance's first stable release took place in September 2023.

See all
User Avatar
No comments yet.