Android

Jetpack Compose

Declarative UI with Compose: Composables, State, Recomposition, Layouts, Modifiers, Navigation and Side Effects

28 питань зі співбесід·
Mid-Level
1

What is Jetpack Compose?

Відповідь

Jetpack Compose is Google's modern toolkit for building native Android UI declaratively. It simplifies and accelerates UI development using Kotlin. Compose is progressively replacing traditional XML Views.

2

What is a Composable function?

Відповідь

A Composable function is a function annotated with @Composable that describes a part of the UI. It can only be called from other Composables. Compose calls these functions to build and update the UI.

3

What is 'remember' used for in Jetpack Compose?

Відповідь

The remember function allows a value to be retained between recompositions of a Composable. Without it, local variables are reset on each recomposition. It keeps the value in memory as long as the Composable remains in the composition.

4

What is the difference between 'remember' and 'rememberSaveable'?

5

What is State in Compose?

+25 питань зі співбесід

Опануй Android для наступної співбесіди

Отримай доступ до всіх питань, flashcards, технічних тестів, вправ code review та симуляторів співбесід.

Почни безкоштовно