Crístian Viana

Migration to declarative UI in Android development

Ditch RecyclerView boilerplate forever. See how declarative UI simplifies building dynamic lists and animations in your Android app.

Migration to declarative UI in Android development
#1about 3 minutes

Understanding the shift from imperative to declarative UI

Imperative UI requires manually describing every state change, whereas declarative UI describes the desired end state and lets the framework handle the transitions.

#2about 2 minutes

Getting started with Jetpack Compose for Android

Jetpack Compose is Google's modern, declarative UI toolkit for Android that is bundled with your app, ensuring compatibility with older Android versions.

#3about 6 minutes

Building UIs with basic layouts and components

Combine fundamental layouts like Column, Row, and Box to build complex UIs, and create reusable custom components by simply defining new functions.

#4about 6 minutes

How Compose works with lifecycle, phases, and state

The UI updates through a lifecycle of composition and recomposition, driven by changes to State objects across three phases: composition, layout, and drawing.

#5about 2 minutes

Implementing animations for a more dynamic UI

Easily add basic animations like fades with AnimatedVisibility or animate any property, such as rotation or color, by using state animation functions.

#6about 3 minutes

Leveraging development tools in Android Studio

Accelerate UI development using tools like live previews with the @Preview annotation, animation debugging, and the Layout Inspector for real-time inspection.

#7about 6 minutes

Migrating an existing Android app to Compose

Adopt Jetpack Compose incrementally by starting with a simple screen, leveraging existing architecture like ViewModels, and using interoperability APIs when needed.

#8about 3 minutes

Overcoming challenges and realizing the benefits of Compose

While there is a learning curve and some missing components, migrating to Compose results in faster development, easier animations, and more maintainable custom UIs.

Related jobs
Jobs that call for the skills explored in this talk.

test

Milly
Vienna, Austria

Intermediate

test

Milly
Vienna, Austria

Intermediate

Featured Partners

Related Articles

View all articles
CH
Chris Heilmann
Dev Digest 134 - Where pixels sing?
News and ArticlesWeAreDevelopers LIVE Data and Security Day is on Wednesday, 25/09/2024. Learn about OPC UA Updates, Best Practices for Using GitHub Secrets, Passwordless Web 1.5, Emerging AI Security Risks, Data Privacy in LLMs and get a chance to t...
Dev Digest 134 - Where pixels sing?
CH
Chris Heilmann
WeAreDevelopers LIVE days are changing - get ready to take part
Starting with this week's Web Dev Day edition of WeAreDevelopers LIVE Days, we changed the the way we run these online conferences. The main differences are:Shorter talks (half an hour tops)More interaction in Q&AA tips and tricks "Did you know" sect...
WeAreDevelopers LIVE days are changing - get ready to take part
LM
Luis Minvielle
Cross Platform Mobile Development Frameworks to Use in 2025
In 2024, mobile developers seem to be trendy once again. The mobile application market is expected to grow by almost 12% in revenue in 2024 alone. For your reference, that’s even above what the renewable energy sector hopes to increase in earnings th...
Cross Platform Mobile Development Frameworks to Use in 2025

From learning to earning

Jobs that call for the skills explored in this talk.

Android Developer

Android Developer

Car2Go
Hamburg, Germany

Senior
Kotlin
RxJava
Android
User-centred Design
Dependency Injection