Finally, place your text, buttons, or images inside the innermost nested views. Visualizing the Code Structure

Disclaimer: CodeHS exercises are designed to test your understanding. Use this breakdown to understand the logic rather than simply copying the code.

button.setPosition(200, 300); Why it fails: If you move the parent view, the button stays behind. Fix: Always calculate position as parent.getX() + offset .

: Use properties like flexDirection , justifyContent , and alignItems on the parent container to control how the nested views are positioned. Example Code Structure