Recall & Review
beginner
What is a Column layout in Android Compose?
A Column layout arranges its child components vertically, one below the other, like stacking books on a shelf.
Click to reveal answer
beginner
What is a Row layout in Android Compose?
A Row layout arranges its child components horizontally, side by side, like people standing in a line.
Click to reveal answer
intermediate
How do you add space between items in a Column or Row?
You can use the
verticalArrangement for Column or horizontalArrangement for Row with values like Arrangement.spacedBy(8.dp) to add space between items.Click to reveal answer
beginner
What does
Modifier.fillMaxWidth() do in a Row layout?It makes the Row stretch to fill the entire width of its parent container, like spreading your arms wide to cover the space.
Click to reveal answer
intermediate
Why use
Modifier.weight() in Row or Column?It lets child components share available space proportionally, like dividing a pizza into slices based on appetite.
Click to reveal answer
Which layout arranges children vertically in Android Compose?
✗ Incorrect
Column arranges children vertically, one below another.
How do you add horizontal space between items in a Row?
✗ Incorrect
horizontalArrangement controls spacing between Row children.
What does
Modifier.fillMaxWidth() do in a Column?✗ Incorrect
fillMaxWidth() makes the layout fill the full width available.
Which modifier helps children share space proportionally in Row or Column?
✗ Incorrect
weight() divides space among children based on assigned weights.
If you want to stack items horizontally, which layout do you use?
✗ Incorrect
Row arranges items side by side horizontally.
Explain how Column and Row layouts differ and when you would use each.
Think about stacking books vs lining up people.
You got /4 concepts.
Describe how to add space between items in a Column or Row layout in Compose.
Spacing is like leaving gaps between objects on a shelf or in a line.
You got /4 concepts.