#moderntoolkit
Explore tagged Tumblr posts
expertappdevs · 4 years ago
Text
Jetpack Compose Basics
Tumblr media
What is Jetpack Compose?
Jetpack Compose is a modern toolkit for building a Native UI in Android. It simplifies and makes easy UI development on Android. Compose is a powerful tool for building native UI and Jetpack Compose uses the Kotlin APIs. You can create a UI very easily and quickly.
Why Jetpack Compose?
Concise and Idiomatic Kotlin
Built with the benefits that Kotlin brings
Declarative
Fully declarative for defining UI components
Compatible
Compatible with existing views
Enable Beautiful Apps
Designed with Material Design
100% Kotlin
written in Kotlin programming language
Accelerate Development
writing less code and using tools
One codebase
No need to write XML anymore.
Less code
With less code, you can achieve more.
Composable Function
In Jetpack Compose, Composable functions are used for defining all the UI elements of your app programmatically. So, you need not create an XML file for your app screen design. You just need to make a composable function just by using the @Composable annotation to the function name. The basic syntax of a Composable function is as below:-
@Composable fun UiComponent() {     // Written code for your UI element }
UI Layouts
Continue Reading: Jetpack Compose
0 notes