Android Compose Advanced
Advanced Jetpack Compose: custom layouts, performance, animations, gestures, and testing
1How to create a Custom Layout in Compose?
How to create a Custom Layout in Compose?
Odpowiedź
Use the Layout { measurables, constraints -> } function. It allows measuring children with measurables.forEach { it.measure(constraints) }, then placing them with layout(width, height) { placeables.forEach { it.place(x, y) } }.
2What is SubcomposeLayout?
What is SubcomposeLayout?
Odpowiedź
SubcomposeLayout allows composing children dynamically based on constraints or measurements of other children. Useful for layouts where one element's size depends on another (e.g., measure header before composing body).
3What are the 3 phases of the Compose lifecycle?
What are the 3 phases of the Compose lifecycle?
Odpowiedź
The 3 phases are: 1) Composition (UI tree creation, @Composable execution), 2) Layout (measurement and placement of elements), 3) Drawing (rendering to screen). Understanding these phases helps optimize performance.
What is derivedStateOf used for?
How to optimize recompositions in Compose?
+14 pytań z rozmów
Inne tematy rekrutacyjne Android
Android Fundamentals
Android UI and Resources
Android Lifecycle
Android Navigation
Android Data Management
Android Networking
Android Testing
Android Gradle
Kotlin Language Essentials for Android
Room Database
Background Work
Jetpack Compose
Permissions and Device Features
Firebase for Android
Android MVVM Architecture
Advanced Android Networking
Kotlin Collections and Operators
Kotlin Coroutines and Flow
Android Dependency Injection
Android MVI Architecture
Android Clean Architecture
Android Performance and Monitoring
Android Security and Privacy
Android CI/CD and Release
Android UX and Form Factors
Android Testing Advanced
Opanuj Android na następną rozmowę
Uzyskaj dostęp do wszystkich pytań, flashcards, testów technicznych, ćwiczeń code review i symulatorów rozmów.
Zacznij za darmo