Jetpack Compose Flashcards

1
Q

What is Jetpack Compose?

A

Jetpack Compose is Android’s modern toolkit for building native UI that simplifies and
accelerates UI development on Android.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are the advantages of Jetpack Compose?

A

– Less/concise code
– Powerful tools
– Intuitive Kotlin APIs
– Accelerated development

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Differentiate the use of jetpack compose from that xml layouts

A

Jetpack Compose utilizes declarative functions in building simple UI components rather than the use of XML layouts/layout editor, domiciled in the layout subfolder under the res folder.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Explain the use of the compose compiler and composable functions

A

Using this toolkit, composable functions are called to define what elements are required,
then the Compose compiler does the rest of the work.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What are the key lessons about the Jetpack Compose
one needs to learn to become competent in using the toolkit?

A

– Composable functions
– Layouts
– Material design
– Lists and animations

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Explain the function and use of composable functions. How is a composable function declared?

A

● Jetpack Compose is built around composable functions.
● Composable functions let one define an app’s UI programmatically by describing how it should look and providing data dependencies rather than
focusing on the process of the UI’s construction, usually required when dealing with XML layouts.
● To create a composable function, one needs to add the @Composable annotation to the function name.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

How is a UI hierarchy built in Compose

A

● UI elements are hierarchical, with elements contained in other elements.
● In Compose, one builds a UI hierarchy by calling composable functions from other composable functions.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is Material Design

A

● Compose is built to support Material Design principles.
● Material Design is an Android-oriented design language created by Google/Alphabet,
supporting onscreen touch experiences via cuerich features and natural motions that mimic realworld objects.
● Many of Compose’s UI elements implement Material Design out of the box.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Describe Lists and Animations

A

● Lists and animations make any application more interactive and interesting.
● Compose has the ability to make it easy to create lists and animations

How well did you know this?
1
Not at all
2
3
4
5
Perfectly